From cce56703b157ed2d0220469fb2e1a8e9c6946a58 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 24 Mar 2011 22:15:12 +0000 Subject: fix configuration name git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1408 ef36b2f9-881f-0410-afb5-c4e39611909c --- pynslcd/pam.py | 4 ++-- 1 file 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 -- cgit v1.2.3-54-g00ecf