LDAP USERROLES()
From Lianjapedia
Contents
Purpose
Function to return the LDAP/ActiveDirectory groups the specified user is a member of
Syntax
LDAP_USERROLES(<cUsername> [, <cLdapServer[:port]> [, <cLdapBasedn>]])
See Also
GETGID(), GETPID(), GETUID(), ID(), LDAP_LOGIN(), USER(), USERDOMAIN(), USEREMAIL(), USERFULLNAME(), USERNAME(), USERROLES(), USERTENANCY(), Users Tables
Description
The LDAP_USERROLES() function returns the LDAP/ActiveDirectory groups the specified user is a member of.
Parameter | Required | Description |
---|---|---|
cUsername | Yes | The name of the user |
cLdapServer[:port] | No | The server hostname or IP address. The port number can also be specified (defaults to :389). If the environment variable LIANJA_LDAP_SERVER is set, cLdapServer can be omitted. |
cLdapBasedn | No | The Base DN. If the environment variable LIANJA_LDAP_BASEDN is set, cLdapBasedn can be omitted. |
Example
? ldap_userroles("Mandy Monroe","192.168.80.139:389","OU=AD LDS Users,O=Lianja,C=UK")) HR,sales