From: Frank Brehm Date: Wed, 18 May 2022 12:36:14 +0000 (+0200) Subject: Minor changes. X-Git-Tag: 0.4.2^2~5^2~3 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=59c567688a13696994df4c42346ccfda75986dfc;p=pixelpark%2Fpp-admin-tools.git Minor changes. --- diff --git a/lib/pp_admintools/ldap_app.py b/lib/pp_admintools/ldap_app.py index bf9b561..3e55314 100644 --- a/lib/pp_admintools/ldap_app.py +++ b/lib/pp_admintools/ldap_app.py @@ -264,7 +264,7 @@ class BaseLdapApplication(FbConfigApplication): ldap_group.add_argument( '-D', '--bind-dn', metavar="DN", dest="ldap_bind_dn", help=_( - "The Bind DN to use to connect to the LDAP server. Default: {}").format( + "The Bind DN to use to connect to the LDAP server. Default: {!r}").format( ldap_bind_dn), ) diff --git a/lib/pp_admintools/ldap_config.py b/lib/pp_admintools/ldap_config.py index 9219a57..810fb08 100644 --- a/lib/pp_admintools/ldap_config.py +++ b/lib/pp_admintools/ldap_config.py @@ -156,7 +156,7 @@ class LdapConnectionInfo(FbBaseObject): @base_dn.setter def base_dn(self, value): if value is None or str(value).strip() == '': - msg = _("An empty Base DN for LDAP serches is not allowed.") + msg = _("An empty Base DN for LDAP searches is not allowed.") raise LdapConfigError(msg) self._base_dn = str(value).strip() @@ -435,7 +435,8 @@ class LdapConfiguration(BaseMultiConfig): connection.bind_pw = value continue - msg = _("Unknown LDAP configuration key found in section {!r}.").format(section_name) + msg = _("Unknown LDAP configuration key {key} found in section {sec!r}.").format( + key=key, sec=section_name) LOG.error(msg) self.ldap_connection[connection_name] = connection