LDAP attribute name case

Issue #2 resolved
viharm repo owner created an issue

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)

  1. viharm reporter
    • changed status to open

    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.

  2. Log in to comment