nss-pam-ldapd branch master updated. 0.9.0-28-g84d22e6
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.0-28-g84d22e6
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.0-28-g84d22e6
- Date: Tue, 30 Jul 2013 00:09:43 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via 84d22e608b03c154d11e54ff34d7b87bf1d78cfa (commit)
from ec5391838ca71ee31afe0ad4377664dd88e5266b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=84d22e608b03c154d11e54ff34d7b87bf1d78cfa
commit 84d22e608b03c154d11e54ff34d7b87bf1d78cfa
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Tue Jul 30 00:07:53 2013 +0200
Fix missing part of d659e83
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]
-----------------------------------------------------------------------
Summary of changes:
pynslcd/passwd.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.9.0-28-g84d22e6,
Commits of the nss-pam-ldapd project