Skip to content

Commit afe6f28

Browse files
robinkeunenremytms
authored andcommitted
[FIX] auth_ldap: return false on LDAPError
1 parent fba744d commit afe6f28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

addons/auth_ldap/users_ldap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def authenticate(self, conf, login, password):
129129
return False
130130
except ldap.LDAPError:
131131
_logger.exception('An LDAP exception occurred')
132+
return False
132133
finally:
133134
conn.unbind()
134135

0 commit comments

Comments
 (0)