ldap: warn about missing users on password reset (fixes #25530)

Instead of logging an error.
This commit is contained in:
Benjamin Dauvergne 2018-07-30 11:57:39 +02:00
parent ce90ea3bd4
commit b84794bd28
1 changed files with 2 additions and 2 deletions

View File

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