Django LDAP authentication for KDL
Project description
Django LDAP authentication
==========================
This application uses django-auth-ldap_ to authenticate against KDL's LDAP service. If the LDAP authentication fails it falls back to Django authentication, so it is possible to have local Django accounts.
Configuration
-------------
#. ``pip install django-kdl-ldap``
#. add ``kdl_ldap`` to ``INSTALLED_APPS``
#. import the ``kdl_ldap`` settings into your project's settings ``from kdl_ldap.settings import * # noqa``.
#. Add the setting ``AUTH_LDAP_REQUIRE_GROUP`` to your project settings and set it to the LDAP group you want to authenticate to: ``AUTH_LDAP_REQUIRE_GROUP = 'cn=PROJECT_GROUP_NAME,' + LDAP_BASE_OU``.
#. Add ``kdl_ldap`` signal handler into your project urls:
from kdl_ldap.signal_handlers import register_signal_handlers as \
kdl_ldap_register_signal_hadlers
kdl_ldap_register_signal_hadlers()
System requirements
-------------------
The python/django LDAP libraries depend on the ``libldap2-dev`` and ``libsasl2-dev`` systemlibraries.
.. _django-auth-ldap: http://pythonhosted.org/django-auth-ldap/
==========================
This application uses django-auth-ldap_ to authenticate against KDL's LDAP service. If the LDAP authentication fails it falls back to Django authentication, so it is possible to have local Django accounts.
Configuration
-------------
#. ``pip install django-kdl-ldap``
#. add ``kdl_ldap`` to ``INSTALLED_APPS``
#. import the ``kdl_ldap`` settings into your project's settings ``from kdl_ldap.settings import * # noqa``.
#. Add the setting ``AUTH_LDAP_REQUIRE_GROUP`` to your project settings and set it to the LDAP group you want to authenticate to: ``AUTH_LDAP_REQUIRE_GROUP = 'cn=PROJECT_GROUP_NAME,' + LDAP_BASE_OU``.
#. Add ``kdl_ldap`` signal handler into your project urls:
from kdl_ldap.signal_handlers import register_signal_handlers as \
kdl_ldap_register_signal_hadlers
kdl_ldap_register_signal_hadlers()
System requirements
-------------------
The python/django LDAP libraries depend on the ``libldap2-dev`` and ``libsasl2-dev`` systemlibraries.
.. _django-auth-ldap: http://pythonhosted.org/django-auth-ldap/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-kdl-ldap-1.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file django-kdl-ldap-1.1.tar.gz
.
File metadata
- Download URL: django-kdl-ldap-1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1466c6e7587c0d04b5a4c2c6adb89c52fb19f292758855dffc33645c5487c5db |
|
MD5 | 14fc638c4cad295e2b4cf9142a9beffe |
|
BLAKE2b-256 | 74b09f64dec8f019fd837727e910f381259c8e7b9147f55de2d54f45651bd173 |
File details
Details for the file django_kdl_ldap-1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_kdl_ldap-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f8f33c97012184074fcf2a9e7fb5ac9c523570893a12dd1c730e187a6f2551 |
|
MD5 | dcb60ca427a1c87b6dcaef97e6cdd0a5 |
|
BLAKE2b-256 | 6e1db3945a6ea74e0b1bae742a7ece33a778fa0dff0be4da8a3f48e4d84263ae |