[
https://issues.apache.org/jira/browse/DIRSERVER-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny closed DIRSERVER-369.
---------------------------------------
Closing all issues created in 2005 and before which are marked resolved
> Disabling anonymous bind doesn't work
> -------------------------------------
>
> Key: DIRSERVER-369
> URL: https://issues.apache.org/jira/browse/DIRSERVER-369
> Project: Directory ApacheDS
> Issue Type: Bug
> 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())
> {
> store.mkdirs();
> }
> env.setProperty(EnvKeys.SCHEMAS, kSCHEMAS);
> env.setProperty(EnvKeys.WKDIR, store.getAbsolutePath());
> env.setProperty(EnvKeys.DISABLE_ANONYMOUS, "true");
> env.setProperty(EnvKeys.LDAP_PORT, settings.getPort());
> try
> {
> // Fire it up!
> new InitialDirContext(env);
> }
> catch (NamingException e)
> {
> ...
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.