nss-pam-ldapd commit: r1579 - nss-pam-ldapd/pynslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1579 - nss-pam-ldapd/pynslcd
- 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 commit: r1579 - nss-pam-ldapd/pynslcd
- Date: Wed, 28 Dec 2011 23:29:51 +0100 (CET)
Author: arthur
Date: Wed Dec 28 23:29:49 2011
New Revision: 1579
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1579&view=revision
Log:
fall back to trying to authenticate with provided password (in case rootpwmodpw
is not set or unusable)
Modified:
nss-pam-ldapd/pynslcd/pam.py
Modified: nss-pam-ldapd/pynslcd/pam.py
==============================================================================
--- nss-pam-ldapd/pynslcd/pam.py Wed Dec 28 23:10:16 2011 (r1578)
+++ nss-pam-ldapd/pynslcd/pam.py Wed Dec 28 23:29:49 2011 (r1579)
@@ -101,6 +101,10 @@
# if the caller is root we will allow the use of rootpwmodpw
if not parameters['password'] and self.calleruid == 0 and
cfg.rootpwmodpw:
password = cfg.rootpwmodpw
+ elif parameters['password']:
+ password = parameters['password']
+ else:
+ raise ValueError('password missing')
else:
self.validate_request(parameters)
userdn = parameters['userdn']
--
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 commit: r1579 - nss-pam-ldapd/pynslcd,
Commits of the nss-pam-ldapd project