Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 44726 invoked from network); 18 Mar 2005 15:19:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Mar 2005 15:19:26 -0000 Received: (qmail 7637 invoked by uid 500); 18 Mar 2005 15:19:25 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 7487 invoked by uid 500); 18 Mar 2005 15:19:24 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 7472 invoked by uid 99); 18 Mar 2005 15:19:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Mar 2005 07:19:23 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j2IFJK89022209 for ; Fri, 18 Mar 2005 16:19:20 +0100 Message-ID: <70280310.1111159160113.JavaMail.jira@ajax.apache.org> Date: Fri, 18 Mar 2005 16:19:20 +0100 (CET) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIREVE-149) Disabling anonymous bind doesn't work In-Reply-To: <350501466.1111158500438.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIREVE-149?page=history ] Alex Karasulu updated DIREVE-149: --------------------------------- Fix Version: 0.9 > Disabling anonymous bind doesn't work > ------------------------------------- > > Key: DIREVE-149 > URL: http://issues.apache.org/jira/browse/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 > Assignee: Alex Karasulu > Fix For: 0.9 > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira