From 59c567688a13696994df4c42346ccfda75986dfc Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 18 May 2022 14:36:14 +0200 Subject: [PATCH] Minor changes. --- lib/pp_admintools/ldap_app.py | 2 +- lib/pp_admintools/ldap_config.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5