From 41aaf938f29a3b1a7da47aaa3f7140eb856d4184 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 15 Jul 2012 12:59:02 +0000 Subject: 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 --- pynslcd/pam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pynslcd/pam.py') 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', )) -- cgit v1.2.3