Class LDAPIsMember

java.lang.Object
netscape.ldap.beans.LDAPBasePropertySupport
netscape.ldap.beans.LDAPIsMember
All Implemented Interfaces:
Serializable

public class LDAPIsMember extends LDAPBasePropertySupport implements Serializable
Invisible Bean that just takes a host and port, optional authentication name and password, and DN of a group and another DN which might be a member of the group, and returns true or false, depending on whether the second DN is a member of the first.
Also handles the case of dynamic groups by derefencing the URL and searching for membership based on the url search.
It doesn't handle nested groups.

A false result means the member could not be identified as belonging to the group. The exact reason is available through getErrorCode(), which returns one of the following:
     OK
     INVALID_PARAMETER
     CONNECT_ERROR
     AUTHENTICATION_ERROR
     PROPERTY_NOT_FOUND
     AMBIGUOUS_RESULTS
     NO_SUCH_OBJECT
See Also: