directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 55728 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/store
Date Wed, 27 Oct 2004 19:58:20 GMT
Author: erodriguez
Date: Wed Oct 27 12:58:19 2004
New Revision: 55728

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/store/LdapStore.java
Log:
Caught bug in retrieval of client key by LDAP.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/store/LdapStore.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/store/LdapStore.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/store/LdapStore.java
Wed Oct 27 12:58:19 2004
@@ -49,7 +49,6 @@
 			KdcSubject subjectLogin = new KdcSubjectLogin(LocalConfig.KDC_PRINCIPAL,
 					LocalConfig.KDC_PASSPHRASE);
 			_subject = subjectLogin.getSubject();
-			System.out.println("Subject >>>" + _subject);
 		}
 	}
 	
@@ -129,7 +128,6 @@
 		try {
 			SearchResult sr = (SearchResult) enum.next();
 			if (sr != null) {
-				System.out.println(">>>" + sr.getName());
 				Attributes attrs = sr.getAttributes();
 				
 				String principal        = (String) attrs.get(LdapStore.PRINCIPAL_NAME).get();
@@ -139,7 +137,7 @@
 				
 				modifier.setPrincipalName(principal);
 				modifier.setEncryptionType(Integer.parseInt(encryptionType));
-				modifier.setEncryptionType(Integer.parseInt(keyVersionNumber));
+				modifier.setKeyVersionNumber(Integer.parseInt(keyVersionNumber));
 				modifier.setKey(keyBytes);
 			}
 		} catch (NamingException e) {

Mime
View raw message