From 84d22e608b03c154d11e54ff34d7b87bf1d78cfa Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 30 Jul 2013 00:07:53 +0200 Subject: Fix missing part of d659e83 --- pynslcd/passwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pynslcd') 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] -- cgit v1.2.3