From 67afca76987fe769f4e7345f5e8396f67bf3fcbb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 27 Dec 2011 21:05:06 +0000 Subject: make logging more consistent and remove test bases from shadow and passwd maps git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1574 ef36b2f9-881f-0410-afb5-c4e39611909c --- pynslcd/passwd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pynslcd/passwd.py') diff --git a/pynslcd/passwd.py b/pynslcd/passwd.py index c2b3eea..17ffe34 100644 --- a/pynslcd/passwd.py +++ b/pynslcd/passwd.py @@ -34,7 +34,6 @@ attmap = common.Attributes(uid='uid', loginShell='loginShell', objectClass='objectClass') filter = '(objectClass=posixAccount)' -bases = ('ou=people,dc=test,dc=tld', ) class Search(common.Search): @@ -62,7 +61,7 @@ class PasswdRequest(common.Request): # write results for name in names: if not common.isvalidname(name): - print 'Warning: passwd entry %s contains invalid user name: "%s"' % (dn, name) + print '%s: %s: denied by validnames option' % (dn, self.attmap['uid']) else: for uid in uids: self.fp.write_int32(constants.NSLCD_RESULT_BEGIN) -- cgit v1.2.3