directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Geleyn (JIRA)" <>
Subject [jira] Created: (DIREVE-149) Disabling anonymous bind doesn't work
Date Fri, 18 Mar 2005 15:08:20 GMT
Disabling anonymous bind doesn't work

         Key: DIREVE-149
     Project: Directory Server
        Type: Bug
  Components: jndi-provider  
    Versions: 0.9    
 Environment: Windows XP, java 1.4.2, SNAPSHOT download of ApacheDS 0.9
    Reporter: David Geleyn
 Assigned to: Alex Karasulu 

Assume the LDAP server is started with the following env property:

env.setProperty(EnvKeys.DISABLE_ANONYMOUS, "true");

The anonymous bind is not disabled since we can access the server with an anonymous bind (via
LDAP Browser).

Some sample code:

// Standard JNDI properties
env.setProperty(Context.PROVIDER_URL, "ou=system");
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory");
env.setProperty(Context.SECURITY_PRINCIPAL, "uid=admin,ou=system");
env.setProperty(Context.SECURITY_CREDENTIALS, "secret");

// Eve specific JNDI properties
File store = new File(...);
if (!store.exists())
env.setProperty(EnvKeys.SCHEMAS, kSCHEMAS);
env.setProperty(EnvKeys.WKDIR, store.getAbsolutePath());
env.setProperty(EnvKeys.DISABLE_ANONYMOUS, "true");
env.setProperty(EnvKeys.LDAP_PORT, settings.getPort());

	//  Fire it up!
	new InitialDirContext(env);
catch (NamingException e)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message