ldap: warn about missing users on password reset (fixes #25530)
Instead of logging an error.
This commit is contained in:
parent
ce90ea3bd4
commit
b84794bd28
|
@ -1196,13 +1196,13 @@ class LDAPBackendPasswordLost(LDAPBackend):
|
||||||
results = conn.search_s(block['basedn'],
|
results = conn.search_s(block['basedn'],
|
||||||
ldap.SCOPE_SUBTREE, ldap_filter)
|
ldap.SCOPE_SUBTREE, ldap_filter)
|
||||||
if not results:
|
if not results:
|
||||||
log.error(
|
log.warning(
|
||||||
u'unable to find user %r based on external id %s',
|
u'unable to find user %r based on external id %s',
|
||||||
user, external_id)
|
user, external_id)
|
||||||
continue
|
continue
|
||||||
dn = results[0][0]
|
dn = results[0][0]
|
||||||
except ldap.LDAPError:
|
except ldap.LDAPError:
|
||||||
log.error(
|
log.warning(
|
||||||
u'unable to find user %r based on external id %s',
|
u'unable to find user %r based on external id %s',
|
||||||
user,
|
user,
|
||||||
external_id)
|
external_id)
|
||||||
|
|
Loading…
Reference in New Issue