summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-24 22:15:12 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-03-24 22:15:12 +0000
commitcce56703b157ed2d0220469fb2e1a8e9c6946a58 (patch)
tree0fca9cd1becdce5ef59bcc56ded6964f4f83088a
parent5936744757e06ceea117086457d082e8befb6233 (diff)
fix configuration name
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1408 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--pynslcd/pam.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/pam.py b/pynslcd/pam.py
index 852830c..d795a64 100644
--- a/pynslcd/pam.py
+++ b/pynslcd/pam.py
@@ -96,9 +96,9 @@ class PAMAuthenticationRequest(PAMRequest):
def handle_request(self):
# if the username is blank and rootpwmoddn is configured, try to
# authenticate as administrator, otherwise validate request as usual
- if not self.username and cfg.ldc_rootpwmoddn:
+ if not self.username and cfg.rootpwmoddn:
# authenticate as rootpwmoddn
- self.userdn = cfg.ldc_rootpwmoddn
+ self.userdn = cfg.rootpwmoddn
# if the caller is root we will allow the use of rootpwmodpw
if not self.password and self.calleruid == 0 and cfg.rootpwmodpw:
self.password = cfg.rootpwmodpw