Skip to content
Snippets Groups Projects
Commit fac6e657 authored by ale's avatar ale
Browse files

LDAP search filter should not be an empty string

parent eab7d283
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class UserDb(model.UserDb):
#
if 'dn' in ldap_params:
base = ldap_params['dn'].replace('%s', escape_dn_chars(username))
filt = ldap_params.get('filter', '').replace('%s', escape_filter_chars(username))
filt = ldap_params.get('filter', '(objectClass=*)').replace('%s', escape_filter_chars(username))
scope = ldap.SCOPE_BASE
else:
base = ldap_params['base'].replace('%s', escape_dn_chars(username))
......
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