mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
ldap_get_entries() returns lower case keys
This commit is contained in:
parent
226b839baa
commit
a429cc436f
|
@ -199,7 +199,7 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
|
||||||
if (!is_bool($info) && $info["count"]>0) {
|
if (!is_bool($info) && $info["count"]>0) {
|
||||||
$dn = $info[0]['dn'];
|
$dn = $info[0]['dn'];
|
||||||
/* Set username to login name in case the email was used for authentication */
|
/* Set username to login name in case the email was used for authentication */
|
||||||
$username = $info[0][$ldapSearchAttribut][0];
|
$username = $info[0][strtolower($ldapSearchAttribut)][0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif(!empty($settings->_enableLoginByEmail)) {
|
} elseif(!empty($settings->_enableLoginByEmail)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user