Lucterios2 / django_auth_ldap3_ad

Simple LDAP/AD auth module for django
https://pypi.python.org/pypi/django-auth-ldap3-ad
GNU General Public License v3.0
45 stars 25 forks source link

Fixed LDAP_USE_LDAP_GROUPS conditionals and added LDAP_GROUPS_SEARCH_BASE #2

Closed juanfont closed 9 years ago

juanfont commented 9 years ago

This pull request includes a fixed for LDAP_USE_LDAP_GROUPS. The real settings.LDAP_USE_LDAP_GROUPS was not being assigned to the LDAP_USE_LDAP_GROUPS variable.

It also includes a commit that adds the LDAP_GROUPS_SEARCH_BASE option, so you can define a different search base to query for the groups. Useful for large databases or with certain schemas.