MantisBT: master 34978af2

Author Committer Branch Timestamp Parent
raspopov vboctor master 2018-02-27 20:04:56 master bf030ce6
Affected Issues  0024043: $g_ldap_realname_field generates WARNING: field 'givenName' does not exist.

Fixed case-sensitive LDAP attributes names

A ldap_get_entries() function returns attribute names as lowercase keys so next call
of array_key_exists() fails because of it performs a case-sensitive comparison.
For example if a $g_ldap_realname_field option is set to 'givenName'
(a well-known LDAP attribute display name) then it finds nothing.

Fixes 0024043

mod - core/ldap_api.php Diff File