directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r406158 - /directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
Date Sat, 13 May 2006 22:19:21 GMT
Author: erodriguez
Date: Sat May 13 15:19:21 2006
New Revision: 406158

URL: http://svn.apache.org/viewcvs?rev=406158&view=rev
Log:
Improvement to robustness in the Kerberos protocol-provider:
o  Set smarter default for base DN for searches to make out-of-the-box demos work easier.

Modified:
    directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java

Modified: directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java?rev=406158&r1=406157&r2=406158&view=diff
==============================================================================
--- directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
(original)
+++ directory/trunks/apacheds/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
Sat May 13 15:19:21 2006
@@ -77,6 +77,9 @@
     /** the default kdc principal */
     private static final String DEFAULT_PRINCIPAL = "krbtgt/EXAMPLE.COM@EXAMPLE.COM";
 
+    /** the default kdc base DN */
+    public static final String KDC_ENTRY_BASEDN = "ou=users,dc=example,dc=com";
+
     /** the default kdc realm */
     private static final String DEFAULT_REALM = "EXAMPLE.COM";
 
@@ -222,6 +225,19 @@
         }
 
         return new KerberosPrincipal( DEFAULT_PRINCIPAL );
+    }
+
+
+    public String getEntryBaseDn()
+    {
+        String key = ENTRY_BASEDN_KEY;
+
+        if ( configuration.containsKey( key ) )
+        {
+            return get( key );
+        }
+
+        return KDC_ENTRY_BASEDN;
     }
 
 



Mime
View raw message