users@glassfish.java.net

Re: GlassFish Using LDAP for Container based (Authenication/Authorization)

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 Apr 2008 12:45:29 PDT

Hello xyonanexus,

You don't have to ommit the -x parameter to use simple authentication (instead of SASL).

For example, use the next command to search the user from "base-dn" with "search-bind-dn" and "search-bind-password":

ldapsearch -x -h localhost -p 389 -b "ou=Users,dc=namchi,dc=com" -s sub -D "search-bind-dn" -w search-bind-password "(uid=testusr01)"


And then, use this other command to bind at the user's entry with his password:

ldapsearch -x -h localhost -p 389 -b "uid=testusr01,ou=Users,dc=namchi,dc=com" -s base -D "uid=testusr01,ou=Users,dc=namchi,dc=com" -w userPassword


I think Glassfish will try to do the same.

Good luck.
[Message sent by forum member 'jmarine' (jmarine)]

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