summaryrefslogtreecommitdiff
path: root/pynslcd/pam.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-05-01 12:14:54 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-05-01 12:14:54 +0000
commit13ddc63d947d11106a4183604017f9ae57bffe41 (patch)
treeda0d4d4c28a12bb687fb637cae179b3121603e74 /pynslcd/pam.py
parentc537c3acc5727a65dd41f94182391365ce022d27 (diff)
pass dn and attributes to functions separately
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1452 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/pam.py')
-rw-r--r--pynslcd/pam.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pynslcd/pam.py b/pynslcd/pam.py
index f680a1e..61fcea7 100644
--- a/pynslcd/pam.py
+++ b/pynslcd/pam.py
@@ -56,7 +56,7 @@ class PAMRequest(common.Request):
# save the DN
self.userdn = entry[0]
# get the "real" username
- value = common.get_rdn_value(entry, passwd.PasswdRequest.attmap_passwd_uid)
+ value = common.get_rdn_value(entry[0], passwd.PasswdRequest.attmap_passwd_uid)
if not value:
# get the username from the uid attribute
values = myldap_get_values(entry, passwd.PasswdRequest.attmap_passwd_uid)