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/28 02:35:13 UTC
svn commit: r202105 -
/directory/apacheds/trunk/main/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Author: akarasulu
Date: Mon Jun 27 17:35:12 2005
New Revision: 202105
URL: http://svn.apache.org/viewcvs?rev=202105&view=rev
Log:
setup sam subsystem so it can get users with a context
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=202105&r1=202104&r2=202105&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 Mon Jun 27 17:35:12 2005
@@ -25,6 +25,7 @@
import javax.naming.NamingException;
import javax.naming.Context;
+import javax.naming.directory.DirContext;
import javax.naming.ldap.Control;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapContext;
@@ -33,6 +34,7 @@
import org.apache.kerberos.service.KdcConfiguration;
import org.apache.kerberos.store.JndiPrincipalStoreImpl;
import org.apache.kerberos.store.PrincipalStore;
+import org.apache.kerberos.sam.SamSubsystem;
import org.apache.ldap.common.exception.LdapConfigurationException;
import org.apache.ldap.common.name.LdapName;
import org.apache.ldap.common.util.PropertiesUtils;
@@ -139,6 +141,7 @@
Service service= new Service( "kerberos", TransportType.DATAGRAM, new InetSocketAddress( port ) );
LdapContext ctx = getBaseRealmContext( config, env );
PrincipalStore store = new JndiPrincipalStoreImpl( ctx, new LdapName( "ou=Users" ) );
+ SamSubsystem.getInstance().setUserContext( ( DirContext ) ctx, "ou=Users" );
try
{