1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

adding filter for ad backend

This commit is contained in:
kakwa 2015-07-26 10:37:20 +02:00
parent 23b3dbfbe3
commit 0914e141ec

View File

@ -95,6 +95,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
self.search_filter_tmpl = '(&(|(sAMAccountName=%(searchstring)s)' \ self.search_filter_tmpl = '(&(|(sAMAccountName=%(searchstring)s)' \
'(cn=%(searchstring)s*)' \ '(cn=%(searchstring)s*)' \
'(name=%(searchstring)s*)' \ '(name=%(searchstring)s*)' \
'(sn=%(searchstring)s*)' \
'(givenName=%(searchstring)s*)' \ '(givenName=%(searchstring)s*)' \
'(cn=%(searchstring)s*))' \ '(cn=%(searchstring)s*))' \
'(&(objectClass=person)' \ '(&(objectClass=person)' \