directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r179962 - /directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Date Sat, 04 Jun 2005 05:48:12 GMT
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
         {



Mime
View raw message