Skip to main content

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/


Project details


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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

django_kdl_ldap-1.0-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-kdl-ldap-1.0.tar.gz.

File metadata

File hashes

Hashes for django-kdl-ldap-1.0.tar.gz
Algorithm Hash digest
SHA256 85c5d0400cf6ca9b1d71a5952fa16c2fa3fd44bc1ac428170bee8448abf90bda
MD5 25af141a412a8cfb2ee5379171b40366
BLAKE2b-256 ff15b505eb8fb3700ecb04dbc60d448a673b3a4449765334a68e1ea48f9a3c8a

See more details on using hashes here.

File details

Details for the file django_kdl_ldap-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_kdl_ldap-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0538511db83f07cfe7b195185ed42d2c9323c9751bdb5daa15a501c5d5d0f1d0
MD5 ee75e1d6452eaa549b53c3dbb3e2cdb4
BLAKE2b-256 742c35ed9c5001b3fedad018cbfe73b19cae1795e415cb4fdfb505796db9731c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page