ungleich-user/dal
Sajeyks ab45535f38 Replace django-auth-ldap and python-ldap with an ldap3 backend
python-ldap is a C extension that needs the OpenLDAP headers to build
(and needed a workaround in the Dockerfile). ldap3, which the app
already used for all writes, is pure Python.

dal.backends.LdapBackend keeps the django-auth-ldap behaviour: search
the uid in every LDAPSEARCH base as the admin DN, require exactly one
match, log in with the user's DN, and mirror givenName, sn and mail into
the local Django user. Empty passwords are rejected (LDAP treats them
as anonymous logins, which succeed).

LDAP_USE_TLS now applies StartTLS to every connection, including the
admin connection used for writes, not just logins.
2026-11-06 15:15:03 +03:00
..
migrations Keep passwords out of activation links 2026-11-06 15:02:41 +03:00
static added red btn similar to blue one 2019-04-16 11:52:22 -04:00
templates Use {% load static %} in templates 2026-11-06 15:06:00 +03:00
tests Replace django-auth-ldap and python-ldap with an ldap3 backend 2026-11-06 15:15:03 +03:00
__init__.py Move project files to root directory 2019-02-17 17:43:06 +01:00
backends.py Replace django-auth-ldap and python-ldap with an ldap3 backend 2026-11-06 15:15:03 +03:00
env.sample Populate README, refresh configuration template 2020-05-01 11:07:29 +02:00
forms.py Remove APIs that Django 4.0 drops 2026-11-06 15:08:02 +03:00
models.py Keep passwords out of activation links 2026-11-06 15:02:41 +03:00
settings.py Replace django-auth-ldap and python-ldap with an ldap3 backend 2026-11-06 15:15:03 +03:00
ungleich_ldap.py Replace django-auth-ldap and python-ldap with an ldap3 backend 2026-11-06 15:15:03 +03:00
urls.py Remove APIs that Django 4.0 drops 2026-11-06 15:08:02 +03:00
views.py Replace deprecated datetime.utcnow() with time.time() 2026-11-06 15:11:01 +03:00
wsgi.py Move project files to root directory 2019-02-17 17:43:06 +01:00