Skip to content

A tiny README might be helpful #4

Description

@dsanader

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 and MIDDLEWARE configuration variables.

import lemonldap.auth
AUTHENTICATION_BACKENDS = [
    'lemonldap.auth.backends.LemonldapUserBackend',
]
MIDDLEWARE = (
    ...
    'lemonldap.auth.middleware.LemonldapAuthenticationMiddleware',
)

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.).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions