directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1468896 - /directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java
Date Wed, 17 Apr 2013 13:14:47 GMT
Author: kayyagari
Date: Wed Apr 17 13:14:47 2013
New Revision: 1468896

URL: http://svn.apache.org/r1468896
Log:
avoid creating KerberosPrincipal for creating a PrincipalName

Modified:
    directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java

Modified: directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java?rev=1468896&r1=1468895&r2=1468896&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java
(original)
+++ directory/apacheds/trunk/kerberos-client2/src/main/java/org/apache/directory/kerberos/client/KdcConnection.java
Wed Apr 17 13:14:47 2013
@@ -490,8 +490,7 @@ public class KdcConnection
         tgsReqBody.setNonce( currentNonce );
         tgsReqBody.setEType( encryptionTypes );
         
-        KerberosPrincipal principal = new KerberosPrincipal( serverPrincipal, KerberosPrincipal.KRB_NT_SRV_HST
);
-        PrincipalName principalName = new PrincipalName( principal );
+        PrincipalName principalName = new PrincipalName( KdcClientUtil.extractName( serverPrincipal
), KerberosPrincipal.KRB_NT_SRV_HST );
         tgsReqBody.setSName( principalName );
         
         TgsReq tgsReq = new TgsReq();



Mime
View raw message