From 0914e141ec09d0b1391b2ee46ec8381d4a39e1d1 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sun, 26 Jul 2015 10:37:20 +0200 Subject: [PATCH] adding filter for ad backend --- ldapcherry/backend/backendAD.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index 6180083..74c8a74 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -95,6 +95,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend): self.search_filter_tmpl = '(&(|(sAMAccountName=%(searchstring)s)' \ '(cn=%(searchstring)s*)' \ '(name=%(searchstring)s*)' \ + '(sn=%(searchstring)s*)' \ '(givenName=%(searchstring)s*)' \ '(cn=%(searchstring)s*))' \ '(&(objectClass=person)' \