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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
.