summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-09-19 08:42:34 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-09-19 08:42:34 -0700
commitf17071533a73c5e989ead1b243de5397d36a38d3 (patch)
tree6156ae63ae36ede5e601bbf2fcb962783d438094 /ipa-admintools
parent6b3d1e85da1397324fa7e8dc25706129ff8ed6fc (diff)
downloadfreeipa-f17071533a73c5e989ead1b243de5397d36a38d3.tar.gz
freeipa-f17071533a73c5e989ead1b243de5397d36a38d3.tar.xz
freeipa-f17071533a73c5e989ead1b243de5397d36a38d3.zip
Implement asynchronous search for groups.
Use the filter generation code to search on multiple fields.
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-findgroup4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-findgroup b/ipa-admintools/ipa-findgroup
index 43171e424..92b3b25b1 100644
--- a/ipa-admintools/ipa-findgroup
+++ b/ipa-admintools/ipa-findgroup
@@ -50,7 +50,9 @@ def main():
client = ipaclient.IPAClient()
groups = client.find_groups(args[1])
- if len(groups) == 0:
+ counter = groups[0]
+ groups = groups[1:]
+ if counter == 0:
print "No entries found for", args[1]
return 0