nss-pam-ldapd branch master updated. 0.8.12-139-g46cf240
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.8.12-139-g46cf240
- 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.8.12-139-g46cf240
- Date: Fri, 29 Mar 2013 15:16:09 +0100 (CET)
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 46cf240eff487be2cdbe86439805f3adb8f570ef (commit)
via 7d1e492f8099ecd3b71574e8b8973d44591255df (commit)
from 302c2fab5dd647aa5f4d3afd58e99fa274a7f08e (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=46cf240eff487be2cdbe86439805f3adb8f570ef
commit 46cf240eff487be2cdbe86439805f3adb8f570ef
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Fri Mar 29 15:14:29 2013 +0100
Rename validate_request to validate
diff --git a/pynslcd/pam.py b/pynslcd/pam.py
index 5c2f629..111fc59 100644
--- a/pynslcd/pam.py
+++ b/pynslcd/pam.py
@@ -69,7 +69,7 @@ def try_bind(binddn, password):
class PAMRequest(common.Request):
- def validate_request(self, parameters):
+ def validate(self, parameters):
"""This method checks the provided username for validity and fills
in the DN if needed."""
# check username for validity
@@ -134,7 +134,7 @@ class PAMAuthenticationRequest(PAMRequest):
else:
raise ValueError('password missing')
else:
- self.validate_request(parameters)
+ self.validate(parameters)
binddn = parameters['userdn']
password = parameters['password']
# try authentication
@@ -199,7 +199,7 @@ class PAMAuthorisationRequest(PAMRequest):
def handle_request(self, parameters):
# fill in any missing userdn, etc.
- self.validate_request(parameters)
+ self.validate(parameters)
# check authorisation search
try:
self.check_authzsearch(parameters)
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=7d1e492f8099ecd3b71574e8b8973d44591255df
commit 7d1e492f8099ecd3b71574e8b8973d44591255df
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Fri Mar 29 15:14:21 2013 +0100
Also perform authentication search using LDAPSearch class
diff --git a/pynslcd/pam.py b/pynslcd/pam.py
index 4009d71..5c2f629 100644
--- a/pynslcd/pam.py
+++ b/pynslcd/pam.py
@@ -58,7 +58,8 @@ def try_bind(binddn, password):
elif ctrl.graceAuthNsRemaining is not None:
return constants.NSLCD_PAM_NEW_AUTHTOK_REQD, 'Password
expired, %d grace logins left' % ctrl.graceAuthNsRemaining
# perform search for own object (just to do any kind of search)
- results = conn.search_s(binddn, ldap.SCOPE_BASE, '(objectClass=*)', ['dn',
])
+ results = search.LDAPSearch(conn, base=binddn, scope=ldap.SCOPE_BASE,
+ filter='(objectClass=*)', attributes=['dn', ])
for entry in results:
if entry[0] == binddn:
return constants.NSLCD_PAM_SUCCESS, ''
-----------------------------------------------------------------------
Summary of changes:
pynslcd/pam.py | 9 +++++----
1 files changed, 5 insertions(+), 4 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.8.12-139-g46cf240,
Commits of the nss-pam-ldapd project