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),
)
@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()
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