Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
locate users by email address when bound as admin
Browse files Browse the repository at this point in the history
minimises ACL requirements
  • Loading branch information
winjer committed Jan 31, 2012
1 parent f483f84 commit 0622168
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_ldap_pixiedust/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def authenticate(self, username, password):
usual mechanism. """

search = settings.ldap_settings.LDAP_PIXIEDUST_LOGIN_SEARCH
self._bind()
results = search.execute(self._get_connection(), {"user": username})

# Process all results and test if they authenticate. We are only expecting a single
Expand Down

0 comments on commit 0622168

Please sign in to comment.