Skip to content

Commit

Permalink
[FIX] auth_ldap: allow non-ascii ldap base
Browse files Browse the repository at this point in the history
  • Loading branch information
robinkeunen committed Nov 25, 2019
1 parent 73d6d6b commit ef00ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/auth_ldap/users_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def query(self, conn, base, filter, retrieve_attributes=None):
"""

results = []
results = conn.search_st(base, ldap.SCOPE_SUBTREE,
results = conn.search_st(base.encode('utf-8'), ldap.SCOPE_SUBTREE,
filter, retrieve_attributes, timeout=60)

# Get rid of (None, attrs) for searchResultReference replies
Expand Down

0 comments on commit ef00ebf

Please sign in to comment.