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

Uploaded Source

Built Distribution

django_kdl_ldap-1.2-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-kdl-ldap-1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5

File hashes

Hashes for django-kdl-ldap-1.2.tar.gz
Algorithm Hash digest
SHA256 fc11c3e9a9f10afdcdd8bb1a116696cc5e02d537f1028bbcfaddcf7257e1fcfd
MD5 cc5e03280023065ae347eb02e9075832
BLAKE2b-256 36ba88a6e8141f3c71beb13f95145eb2adb20faa6206977a7e2add69d57616cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_kdl_ldap-1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5

File hashes

Hashes for django_kdl_ldap-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff9006f23782f7fdcf6cab4b31ae28e25f70642c70a6750f56147b5b418b3dd3
MD5 fa6aef9b0939fc7e8890072c8a01fc9c
BLAKE2b-256 ffd402434b1a3a5f6efca879696ccf74569036c97bec7af05b35798cc9097418

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