Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons 3.0. |
...
Parameter name | Type | Required | Description |
---|---|---|---|
ldapQuery | string | yes | the query, must return exactly one result |
ldapName | string | no | Optional, from version 4.0, you can specify which LDAP server must be searched. If missing, it's the default LDAP server |
Returns
Each element in the array represents an user. The attributes field of the JLdapUserStruct is also keyed by the attribute name for easy access of attributes. Each attribute is a JLdapUserAttribute. The "value" field of the attribute is a string array. If the attribute only has one value, the array will contain only one element, but will still be an array and not a single string.
...
Note |
---|
LDAP must be configured (see LDAP Configurationconfiguration page). |
Warning |
---|
Only Microsoft Active Directory is supported at this time, but it might work with others as well (tested with OpenDS). To provide support for other LDAP types, please contact us. |
...