users@glassfish.java.net

Ldap as admin-realm authentication

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 Sep 2009 09:27:54 PDT

I would like to use ldap for the admin realm. The following is what i have configured.

<auth-realm classname="com.sun.enterprise.security.auth.realm.ldap.LDAPRealm" name="admin-realm">
          <property name="jaas-context" value="ldapRealm" />
          <property name="bind-dn" value="ou=stis,ou=st,dc=stcg,dc=net" />
          <property name="base-dn" value="dc=stcg,dc=net" />
          <property name="directory" value="ldap://stcg.net:389" />
        </auth-realm>

I'm getting an exception that says it must complete a successful bind first. What am i missing or doing wrong. Any help would be appreciated.
[Message sent by forum member 'chrisjasp' (chrisjasp_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=365581