This is a fork of django-ldap-groups that adds python 3 support, 1.7 migrationsm optional django-constance settings, and bug fixes. It is currently used in production but could always use additional testing especially in python 3.
pip install django-ldap-groups-bsc
LDAP_URL
Full url of the ldap server. Exampleldap://example.com:389
LDAP_NT4_DOMAIN
LDAP_BIND_USER
LDAP_BIND_PASSWORD
LDAP_SEARCH_DN
LDAP_USE_CONSTANCE
Defaults toFalse
. Used for admin user selectable settings
Some uses cases merit storing settings that privileged users edit on the fly. This uses django-constance to achieve this. It also makes it possible to use with django-tenant-schemas when using the constance database backend.
- Install django-constance
- Set
LDAP_USE_CONSTANCE = True
- Add these to your
CONSTANCE_CONFIG
settings.
'LDAP_URL': ('', 'Ex: ldap://admin.example.com:389'),
'LDAP_NT4_DOMAIN': ('', 'Ex: ADMIN'),
'LDAP_BIND_USER': ('', 'Ex: ldap_user'),
'LDAP_BIND_PASSWORD': ('', 'Bind user\'s password'),
'LDAP_SEARCH_DN': ('', 'DC=admin,DC=example,DC=com'),
- Add unit tests
- Test python 3 support