summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Command/Search.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php
index 17e506855b2..57970b1ac5d 100644
--- a/apps/user_ldap/lib/Command/Search.php
+++ b/apps/user_ldap/lib/Command/Search.php
@@ -114,6 +114,11 @@ class Search extends Command {
$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';