diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 08:42:34 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 08:42:34 -0700 |
commit | f17071533a73c5e989ead1b243de5397d36a38d3 (patch) | |
tree | 6156ae63ae36ede5e601bbf2fcb962783d438094 /ipa-admintools | |
parent | 6b3d1e85da1397324fa7e8dc25706129ff8ed6fc (diff) | |
download | freeipa-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-findgroup | 4 |
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 |