]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Minor changes.
authorFrank Brehm <frank@brehm-online.com>
Wed, 18 May 2022 12:36:14 +0000 (14:36 +0200)
committerFrank Brehm <frank@brehm-online.com>
Wed, 18 May 2022 12:36:14 +0000 (14:36 +0200)
lib/pp_admintools/ldap_app.py
lib/pp_admintools/ldap_config.py

index bf9b561b19bf615d66322d2c7a84255a60d000cd..3e553144450b7727831f05b09c5cd8cde90e7cf8 100644 (file)
@@ -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),
             )
 
index 9219a578a9e6485cfaed583db913bd3781119023..810fb08c8d07bfd2084922692751eecb9e38060a 100644 (file)
@@ -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