Skip to content

Commit

Permalink
return false if can't bind ldap
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentDcmps committed Mar 21, 2023
1 parent 8ad4ba9 commit 5fb5633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions supysonic/managers/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def search_user(self, user, filter):
entries = conn.entries
except ldap3.core.exceptions.LDAPBindError:
logger.warning("wrong can't bind LDAP with {0}".format(self.bind_dn))
return False
for entrie in entries:
if entrie[self.username_attr] == user:
return entrie
Expand Down

0 comments on commit 5fb5633

Please sign in to comment.