directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r366132 - /directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java
Date Thu, 05 Jan 2006 09:05:13 GMT
Author: elecharny
Date: Thu Jan  5 01:05:08 2006
New Revision: 366132

URL: http://svn.apache.org/viewcvs?rev=366132&view=rev
Log:
Backporting DN-refactoring to this branch

Modified:
    directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java

Modified: directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java
URL: http://svn.apache.org/viewcvs/directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java?rev=366132&r1=366131&r2=366132&view=diff
==============================================================================
--- directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java
(original)
+++ directory/branches/DN-refactoring/kerberos-common/src/main/java/org/apache/kerberos/store/operations/AddPrincipal.java
Thu Jan  5 01:05:08 2006
@@ -29,7 +29,7 @@
 import javax.naming.spi.DirStateFactory.Result;
 
 import org.apache.kerberos.store.PrincipalStoreEntry;
-import org.apache.ldap.common.name.LdapName;
+import org.apache.ldap.common.name.LdapDN;
 import org.apache.protocol.common.store.ContextOperation;
 
 /**
@@ -67,7 +67,7 @@
 
             Attributes attrs = result.getAttributes();
 
-            LdapName name = new LdapName( "uid=" + entry.getUserId() + ",ou=Users" );
+            Name name = new LdapDN( "uid=" + entry.getUserId() + ",ou=Users" );
 
             ctx.rebind( name, null, attrs );
 



Mime
View raw message