You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/06/04 07:48:12 UTC

svn commit: r179962 - /directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java

Author: akarasulu
Date: Fri Jun  3 22:48:11 2005
New Revision: 179962

URL: http://svn.apache.org/viewcvs?rev=179962&view=rev
Log:
no longer using variable search base ... but should have made this into a constant

Modified:
    directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java

Modified: directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java?rev=179962&r1=179961&r2=179962&view=diff
==============================================================================
--- directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java (original)
+++ directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java Fri Jun  3 22:48:11 2005
@@ -237,16 +237,7 @@
 
         InitialLdapContext ctx = new InitialLdapContext( initialEnv, new Control[]{} );
 
-        Object baseStr = initialEnv.get( JndiPrincipalStoreImpl.KDC_STORE_SEARCHBASE );
-
-        if ( baseStr == null )
-        {
-            throw new LdapConfigurationException( "Trying to start kerberos service without setting " + JndiPrincipalStoreImpl.KDC_STORE_SEARCHBASE );
-        }
-
-        LdapName base = new LdapName( ( String ) baseStr );
-
-        PrincipalStore store = new JndiPrincipalStoreImpl( ctx, base );
+        PrincipalStore store = new JndiPrincipalStoreImpl( ctx, new LdapName( "ou=User" ) );
 
         try
         {