directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r605759 - /directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
Date Thu, 20 Dec 2007 00:47:16 GMT
Author: erodriguez
Date: Wed Dec 19 16:47:15 2007
New Revision: 605759

URL: http://svn.apache.org/viewvc?rev=605759&view=rev
Log:
Fixed problem with KdcServer always defaulting to use catalog-based Kerberos principal lookups.
 Lookup now properly switches based on boolean value of isCatalogBased.

Modified:
    directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java

Modified: directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java?rev=605759&r1=605758&r2=605759&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
Wed Dec 19 16:47:15 2007
@@ -422,8 +422,16 @@
      */
     public void start() throws IOException
     {
-        PrincipalStore store = new JndiPrincipalStoreImpl( getSearchBaseDn(),
-                getSearchBaseDn(), getDirectoryService() );
+        PrincipalStore store;
+
+        if ( isCatelogBased() )
+        {
+            store = new JndiPrincipalStoreImpl( getSearchBaseDn(), null, getDirectoryService()
);
+        }
+        else
+        {
+            store = new JndiPrincipalStoreImpl( null, getSearchBaseDn(), getDirectoryService()
);
+        }
 
         if ( getDatagramAcceptor() != null )
         {



Mime
View raw message