aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Access.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 7f5bc028b6b..1a9c04aef77 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -280,10 +280,11 @@ class Access extends LDAPUtility implements IUserTools {
public function extractAttributeValuesFromResult($result, $attribute) {
$values = [];
if(isset($result[$attribute]) && $result[$attribute]['count'] > 0) {
+ $lowercaseAttribute = strtolower($attribute);
for($i=0;$i<$result[$attribute]['count'];$i++) {
if($this->resemblesDN($attribute)) {
$values[] = $this->sanitizeDN($result[$attribute][$i]);
- } elseif(strtolower($attribute) === 'objectguid' || strtolower($attribute) === 'guid') {
+ } elseif($lowercaseAttribute === 'objectguid' || $lowercaseAttribute === 'guid') {
$values[] = $this->convertObjectGUID2Str($result[$attribute][$i]);
} else {
$values[] = $result[$attribute][$i];