Harshit Bansal
88c1d868d2
dev_ldap: Fix password in mode 'c' to be equal to username.
2019-01-29 16:01:30 -08:00
Harshit Bansal
3e3d8527b0
tests: Use `init_fakeldap()` in `test_signup.py`.
2019-01-17 10:16:48 -08:00
Harshit Bansal
356c5bfb0e
dev_ldap: Make `userPassword` a multi-value attribute.
...
`fakeldap` assumes every attribute to be a multi-value attribute
while making comparison in `_comapare_s()` and so while making
comparisons for password it gives a false positive. The result
of this was that it was possible to login in the dev environment
using LDAP using a substring of the password. For example, if the
LDAP password is `ldapuser1` even entering `u` would log you in.
2019-01-17 10:16:48 -08:00
Tim Abbott
0c5f4d43f9
ldap: Avoid spammy log messages from fakeldap as well.
2019-01-14 09:52:25 -08:00
Harshit Bansal
d2b7a24c26
ldap: Adjust `django_auth_ldap` settings to avoid spammy log messages.
2019-01-14 09:50:30 -08:00
Harshit Bansal
6e20a9a419
ldap: Extract `init_fakeldap()`.
2019-01-13 18:51:50 -08:00
Tim Abbott
331984c322
ldap: Cast account_control_values to int.
...
This value will usually apparently come through the LDAP API as a
string, apparently.
2018-12-29 16:35:13 -08:00
Tim Abbott
626e191201
ldap: Add support for automatic user deactivation/reactivation.
...
As part of this, extend our documentation on synchronizing data from
Active Directory.
2018-12-13 16:24:15 -08:00
Tim Abbott
0a5221a819
ldap: Extract dev_ldap_directory.py.
...
This gets what is fundamentally unit testing code out of backends.py.
2018-12-13 16:24:15 -08:00