ldap_get_entries() returns lower case keys

This commit is contained in:
Uwe Steinmann 2024-05-14 11:57:05 +02:00
parent 226b839baa
commit a429cc436f

View File

@ -199,7 +199,7 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
if (!is_bool($info) && $info["count"]>0) {
$dn = $info[0]['dn'];
/* 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)) {