HHSIDEAlab/django_ldap_auth_backend

Name: django_ldap_auth_backend

Owner: HHS IDEA Lab

Description: An LDAP Authentication Backend for Django

Created: 2017-10-29 21:09:13.0

Updated: 2017-10-29 23:53:20.0

Pushed: 2017-11-01 11:53:48.0

Homepage: null

Size: 9

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

LDAP Authentication Backend

Install with the following command:

pip install django_ldap_auth_backend

Then add the backend module to to AUTHENTICATION_BACKENDS in your Django settings like so:

AUTHENTICATION_BACKENDS = (
    'ldap.backends.ldap_auth.LDAPBackend',
    'django.contrib.auth.backends.ModelBackend',
    .
    .
    .
    )

Be default the backend looks for an LDAP server at localhost on port 10389.

These items can be overridden in django settings like so:

LDAP_HOST = "ldap.example.com"
LDAP_PORT = 9999

In the above example, the backend will look for an LDAP server ldap.example.com on port 9999.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.