- Force python-ldap >= 3 to get proper bytes/string management.
- Replace common['name'] with common['first_name'] because the name is
  already broken by get_names. Actually, allauth breaks down
  common['name'] in 'first_name + last_name'.
- Decrease timeout of LDAP requests to 5s.
- Fix get_names in case the LDAP returned a string without any space
  character.
- Fix get_names in case the LDAP doesn't return any cn, which was
  failing with Py3.
- Add tests about populating user data from LDAP.
This commit is contained in:
Aurélien Delobelle 2018-05-15 10:10:16 +02:00 committed by Aurélien Delobelle
parent fdafd407d4
commit ce1e7d1099
4 changed files with 144 additions and 37 deletions

View file

@ -47,6 +47,6 @@ setup(
'django-allauth',
'django-allauth-cas>=1.0.0b2,<1.1',
'django-widget-tweaks',
'python-ldap',
'python-ldap>=3.0',
],
)