Skip to content
Snippets Groups Projects
Commit c223335d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make user filter optional. Advances #23.

parent 04b2d9ee
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ if _settings.get('ldap.uri', None):
AUTH_LDAP_USER_SEARCH = LDAPSearch(
_settings.get('ldap.users.base'),
ldap.SCOPE_SUBTREE,
_settings.get('ldap.users.filter')
_settings.get('ldap.users.filter', '(uid=%(user)s)')
)
# Mapping of LDAP attributes to Django model fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment