users@glassfish.java.net

Re: LDAP Realm - User Principal and UID

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Jul 2008 05:37:26 PDT

Sorry for the late reply. Were you able to get this resolved ?.

The LDAPRealm in GlassFish takes the following properties :

search-filter - LDAP filter to use for searching for the user entry based on username given to iAS. The default value is "uid=%s" where %s is expanded to the username.

group-base-dn - The base DN to use for group searches. By default its value is the same as base-dn.

group-search-filter - The LDAP filter to use for searching group membership of a given user. The default value is "uniquemember=%d" where %d is expanded to the DN of the user found by the user search.

group-target - The attribute which value(s) are interpreted as group membership names of the user. Default value is "cn".

search-bind-dn - The dn of ldap user. optional and no default value.

search-bind-password - The password of search-bind-dn.optional and no default value.

So in your case you might be able to specify the search-filter or group-search-filter properties to get a different behaviour.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

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