diff options
author | rcritten@redhat.com <rcritten@redhat.com> | 2007-09-05 13:14:23 -0400 |
---|---|---|
committer | rcritten@redhat.com <rcritten@redhat.com> | 2007-09-05 13:14:23 -0400 |
commit | 9b30f4674465b8e5f9bfcb359a9a9336dec0d120 (patch) | |
tree | 6cd0e8e521b315e17484445cd9b6507b5727244c /ipa-admintools/ipa-finduser | |
parent | 82943c31de32b0388a7c23e6e6a18cc9c99ac502 (diff) | |
download | freeipa-9b30f4674465b8e5f9bfcb359a9a9336dec0d120.tar.gz freeipa-9b30f4674465b8e5f9bfcb359a9a9336dec0d120.tar.xz freeipa-9b30f4674465b8e5f9bfcb359a9a9336dec0d120.zip |
Enable LDAP SASL authentication using a forwarded kerberos ticket
Handle both SASL auth and proxied authentication
Refactor LDAP connection code to be simpler
Other small bug fixes
Diffstat (limited to 'ipa-admintools/ipa-finduser')
-rw-r--r-- | ipa-admintools/ipa-finduser | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-finduser b/ipa-admintools/ipa-finduser index 167ac23d..409d2e3d 100644 --- a/ipa-admintools/ipa-finduser +++ b/ipa-admintools/ipa-finduser @@ -50,7 +50,9 @@ def main(): client = ipaclient.IPAClient() users = client.find_users(args[1], sattrs=['dn','uid','cn','homeDirectory']) - if len(users) == 0: + counter = users[0] + users = users[1:] + if counter == 0: print "No entries found for", args[1] return 0 |