Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/pam.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-07-15 14:59:02 +0200
committerArthur de Jong <arthur@arthurdejong.org>2012-07-15 14:59:02 +0200
commit41aaf938f29a3b1a7da47aaa3f7140eb856d4184 (patch)
treea2c83b2d3e5db8745564cf48bfc59d6ba09a703a /pynslcd/pam.py
parent6b0d47b940736286b096e2ba25b191933ee0b13c (diff)
rename internal pam_authz_search to pam_authz_searches
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1718 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/pam.py')
-rw-r--r--pynslcd/pam.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/pam.py b/pynslcd/pam.py
index c5f2941..3588797 100644
--- a/pynslcd/pam.py
+++ b/pynslcd/pam.py
@@ -147,7 +147,7 @@ class PAMAuthorisationRequest(PAMRequest):
self.fp.write_int32(constants.NSLCD_RESULT_END)
def check_authzsearch(self, parameters):
- if not cfg.pam_authz_search:
+ if not cfg.pam_authz_searches:
return
# escape all parameters
variables = dict((k, escape(v)) for k, v in parameters.items())
@@ -158,7 +158,7 @@ class PAMAuthorisationRequest(PAMRequest):
uid=variables['username'],
)
# go over all authz searches
- for x in cfg.pam_authz_search:
+ for x in cfg.pam_authz_searches:
filter = x.value(variables)
logging.debug('trying pam_authz_search "%s"', filter)
search = common.Search(self.conn, filter=filter, attributes=('dn', ))