LdapServices

LdapServices provides static methods that provide authentication and search methods against an Ldap Registry. Most of the methods provided use the connection properties defined in the XIldap.properties file.

LdapServices Functions

authenticate LdapServices.authenticate( userName , password [, baseDistinguishedName , userKeyAttributeName , removeDomainNameFromUser ] ) Authenticates the supplied user/password combination against the Ldap Registry identified by properties in the XIldap.properties file file using simple authentication (user/password check).
getADGroups LdapServices.getADGroups( userName [, baseDistinguishedName , removeDomainNameFromUser ] ) Returns all Active Directory group names associated with a user including nested groups, using the Active Directory tokenGroups attribute to obtain this information.
getLdapContext LdapServices.getLdapContext( [props ] ) Returns an javax.naming.directory.InitialDirContext object using the supplied properties.
getUserAttribute LdapServices.getUserAttribute( userName , attributeName [, baseDistinguishedName , userKeyAttributeName , removeDomainNameFromUser ] ) Returns a single attribute associated with a user from the Ldap Registry identified by properties in the XIldap.properties file file.
getUserAttributes LdapServices.getUserAttributes( userName [, baseDistinguishedName , userKeyAttributeName , removeDomainNameFromUser ] ) Returns all attributes associated with a user from the Ldap Registry identified by properties in the XIldap.properties file file.