Skip to content

burke-software/django-ldap-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

pip install django-ldap-groups-bsc

Settings

  • LDAP_URL Full url of the ldap server. Example ldap://example.com:389
  • LDAP_NT4_DOMAIN
  • LDAP_BIND_USER
  • LDAP_BIND_PASSWORD
  • LDAP_SEARCH_DN
  • LDAP_USE_CONSTANCE Defaults to False. Used for admin user selectable settings

LDAP settings in the database

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.

  1. Install django-constance
  2. Set LDAP_USE_CONSTANCE = True
  3. 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'),

TODO

  • Add unit tests
  • Test python 3 support

About

A fork of django-ldap-groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published