From the midlleware.py variable, I found out that I had to at least expose a Auth-User header for my Django app in the LemonLDAP::NG manager, and that other builtin variables were available (Mail, Superuser, Staff... etc.).
Note that pipy has an outdated version missing commit e49333113517dba575a80cdc57b4432548b98efa so installing with "pip install" results in non working code.
Hello,
There's no really easy to find setup instructions for this package and by the way, the LemonLDAP::NG documentation refers to a non existing
README
.It might be useful for potential users. ;)
A README possible content
What I've gathered, is I had to obviously install the package in the same environment as the Django app.
pip install django-lemonldap
And then add the required classes in
AUTHENTICATIONS_BACKENDS
andMIDDLEWARE
configuration variables.From the midlleware.py variable, I found out that I had to at least expose a
Auth-User
header for my Django app in the LemonLDAP::NG manager, and that other builtin variables were available (Mail, Superuser, Staff... etc.).