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'],
|
||||
ldap.SCOPE_SUBTREE, ldap_filter)
|
||||
if not results:
|
||||
log.error(
|
||||
log.warning(
|
||||
u'unable to find user %r based on external id %s',
|
||||
user, external_id)
|
||||
continue
|
||||
dn = results[0][0]
|
||||
except ldap.LDAPError:
|
||||
log.error(
|
||||
log.warning(
|
||||
u'unable to find user %r based on external id %s',
|
||||
user,
|
||||
external_id)
|
||||
|
|
Loading…
Reference in New Issue