lists.arthurdejong.org
RSS feed

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



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/