etianen / django-python3-ldap

Django LDAP user authentication backend for Python 3.
BSD 3-Clause "New" or "Revised" License
411 stars 120 forks source link

Is there a way to filter user on the ldap_sync_users #231

Closed markgrimes62 closed 2 years ago

markgrimes62 commented 2 years ago

want to only include users where userAccountControl = '512'

etianen commented 2 years ago

Check out the LDAP_AUTH_FORMAT_SEARCH_FILTERS setting. It applies to both ldap_sync_users and authentication, however.