Projet

Général

Profil

0001-ldap-warn-about-missing-users-on-password-reset-fixe.patch

Benjamin Dauvergne, 30 juillet 2018 11:58

Télécharger (1,44 ko)

Voir les différences:

Subject: [PATCH] ldap: warn about missing users on password reset (fixes
 #25530)

Instead of logging an error.
 src/authentic2/backends/ldap_backend.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2/backends/ldap_backend.py
1196 1196
                            results = conn.search_s(block['basedn'],
1197 1197
                                                    ldap.SCOPE_SUBTREE, ldap_filter)
1198 1198
                            if not results:
1199
                                log.error(
1199
                                log.warning(
1200 1200
                                    u'unable to find user %r based on external id %s',
1201 1201
                                    user, external_id)
1202 1202
                                continue
1203 1203
                            dn = results[0][0]
1204 1204
                    except ldap.LDAPError:
1205
                        log.error(
1205
                        log.warning(
1206 1206
                            u'unable to find user %r based on external id %s',
1207 1207
                            user,
1208 1208
                            external_id)
1209
-