- changed status to open
LDAP attribute name case
Issue #2
resolved
LDAP attribute names do not match with the search results.
Attribute name of the usernames who are members of a group is memberUid
; however when this is supplied to the script, it does not match and no group members are found.
Comments (4)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
reporter - marked as major
Re-set to 'major', as it is influenced by user input.
-
reporter - changed status to resolved
Updated script. Resolved in commit #bb8c573.
- Log in to comment
Attributes are case-insensitive for directory servers, but not when used as array indices.
ldap_get_entries
converts the attribute index to lowercase. (http://php.net/manual/en/function.ldap-get-entries.php)Hence if the supplied attribute name has any uppercase alphabets then it will not match with the results of
ldap_get_entries
.This needs to be fixed by converting all supplied attribute names to lowercase; and then processing.