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)' \