Skip to content

Commit

Permalink
Merge pull request #27556 from owncloud/ldap_fix_group_search_stable9.1
Browse files Browse the repository at this point in the history
Convert the group limit to match the same behaviour as the user search
  • Loading branch information
Vincent Petry authored Apr 3, 2017
2 parents 22df885 + 0328eeb commit 2c3ed15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/user_ldap/lib/Command/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$proxy = new Group_Proxy($configPrefixes, $ldapWrapper);
$getMethod = 'getGroups';
$printID = false;
// convert the limit of groups to null. This will show all the groups available instead of
// nothing, and will match the same behaviour the search for users has.
if ($limit === 0) {
$limit = null;
}
} else {
$proxy = new User_Proxy($configPrefixes, $ldapWrapper, $this->ocConfig);
$getMethod = 'getDisplayNames';
Expand Down

0 comments on commit 2c3ed15

Please sign in to comment.