Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 18, 2016
2 parents 08ba517 + 8290d69 commit daa8e54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/plugins/auth.ldap/LdapAuthDriver.php
Expand Up @@ -477,9 +477,7 @@ public function getUsersCount($baseGroup = "/", $regexp = "", $filterProperty =
}

if (!empty($this->hasGroupsMapping)) {
if ($baseGroup == "/") {
$this->dynamicFilter = "!(" . $this->hasGroupsMapping . "=*)";
} else {
if ($baseGroup !== "/") {
$this->dynamicFilter = $this->hasGroupsMapping . "=" . basename($baseGroup);
}
}
Expand Down Expand Up @@ -1100,4 +1098,4 @@ public function sanitize($s, $level = InputFilter::SANITIZE_HTML)
$newS = preg_replace($preg, '_', $s);
return $newS;
}
}
}

0 comments on commit daa8e54

Please sign in to comment.