1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 01:14:21 +01:00

fix error messages/logs in ldap backend

This commit is contained in:
kakwa 2015-11-03 08:53:46 +01:00
parent 97e0ae8cc3
commit 4e5c361e5e

View File

@ -21,7 +21,7 @@ import re
class CaFileDontExist(Exception): class CaFileDontExist(Exception):
def __init__(self, cafile): def __init__(self, cafile):
self.cafile = cafile self.cafile = cafile
self.log = "CA file %(cafile)s don't exist" % {'cafile': cafile} self.log = "CA file %(cafile)s does not exist" % {'cafile': cafile}
NO_ATTR = 0 NO_ATTR = 0
DISPLAYED_ATTRS = 1 DISPLAYED_ATTRS = 1
@ -413,7 +413,7 @@ class Backend(ldapcherry.backend.Backend):
severity=logging.INFO, severity=logging.INFO,
msg="%(backend)s: user '%(user)s'" msg="%(backend)s: user '%(user)s'"
" already member of group '%(group)s'" " already member of group '%(group)s'"
"(attribute '%(attr)s')" % { " (attribute '%(attr)s')" % {
'user': username, 'user': username,
'group': self._uni(group), 'group': self._uni(group),
'attr': attr, 'attr': attr,