diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-30 00:07:53 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-30 00:09:13 +0200 |
commit | 84d22e608b03c154d11e54ff34d7b87bf1d78cfa (patch) | |
tree | 64ea7378f5d73d0a882e36cdae05755d2d4d9f75 /pynslcd | |
parent | ec5391838ca71ee31afe0ad4377664dd88e5266b (diff) |
Fix missing part of d659e83
Diffstat (limited to 'pynslcd')
-rw-r--r-- | pynslcd/passwd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/passwd.py b/pynslcd/passwd.py index 7fb5619..7504961 100644 --- a/pynslcd/passwd.py +++ b/pynslcd/passwd.py @@ -116,7 +116,7 @@ def uid2entry(conn, uid): """Look up the user by uid and return the LDAP entry or None if the user was not found.""" for dn, attributes in Search(conn, parameters=dict(uid=uid)): - if any(int(x) >= cfg.nss_min_uid for x in attributes['uidNumber']]) + if any(int(x) >= cfg.nss_min_uid for x in attributes['uidNumber']): return dn, attributes @@ -127,5 +127,5 @@ def dn2uid(conn, dn): """Look up the user by dn and return a uid or None if the user was not found.""" for dn, attributes in Search(conn, base=dn): - if any(int(x) >= cfg.nss_min_uid for x in attributes['uidNumber']]) + if any(int(x) >= cfg.nss_min_uid for x in attributes['uidNumber']): return attributes['uid'][0] |