Skip to content

Commit

Permalink
[FIX] auth_ldap: return false on LDAPError
Browse files Browse the repository at this point in the history
  • Loading branch information
robinkeunen committed Mar 27, 2020
1 parent ef00ebf commit df1cafe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/auth_ldap/users_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def authenticate(self, conf, login, password):
return False
except ldap.LDAPError:
_logger.exception('An LDAP exception occurred')
return False
finally:
conn.unbind()

Expand Down

0 comments on commit df1cafe

Please sign in to comment.