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

Avoid IndexError when LDAP attribute returns empty list #33

Closed seancallaway closed 4 years ago

seancallaway commented 4 years ago

This fixes #31 by setting user_attribs[attrib] to None when user_attribs[attrib] is an empty list.

seancallaway commented 4 years ago

@AnaelMobilia, any chance we can get this reviewed?

seancallaway commented 4 years ago

@povtux, any chance this can get reviewed?