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

LDAP_USER_BU is not working #24

Closed MukeZ closed 6 years ago

MukeZ commented 6 years ago

Hi,

I set up LDAP_STORE_BUSINESS_UNIT = { 'CN=xxxx,DC=au': 'XXX', } in settings.py

And I got a KeyError when I use request.session['LDAP_USER_BU']

request.session['LDAP_USER_DN'] just fine.

Cheers

MukeZ commented 6 years ago

ok, I see why..

I'm using LDAP_STORE_BUSINESS_UNIT that is different with LDAP_USER_DN.