Skip to content
Snippets Groups Projects
Commit 11f7823e authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

precaution: lowercase string for comparison

parent e07ebdd7
Branches
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class Manager { ...@@ -137,7 +137,7 @@ class Manager {
return $this->users['byUid'][$id]; return $this->users['byUid'][$id];
} }
if(strpos($id, 'dc=') === false) { if(strpos(mb_strtolower($id, 'UTF-8'), 'dc=') === false) {
//most likely a uid //most likely a uid
$dn = $this->access->username2dn($id); $dn = $this->access->username2dn($id);
if($dn !== false) { if($dn !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment