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

LDAP: be careful which limit is send to possible paged LDAP search

parent 977c4d18
Branches
No related tags found
No related merge requests found
......@@ -112,7 +112,10 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
return $ldap_users;
}
//prepare search filter
// if we'd pass -1 to LDAP search, we'd end up in a Protocol error. With a limit of 0, we get 0 results. So we pass null.
if($limit <= 0) {
$limit = null;
}
$search = empty($search) ? '*' : '*'.$search.'*';
$filter = $this->combineFilterWithAnd(array(
$this->connection->ldapUserFilter,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment