Skip to content

littldr/django-auth-ldap-auto-discover-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic discover of LDAP services

This addon will add automatic discovery of the LDAP server to use for django-ldap-auth. It requires version 1.1.6+ of django-ldap-auth and dnspython.

If your company/organization is publishing the LDAP servers via DNS SRV records you just need to add the following to you django settings.py:

from ldap_auto_discover import discover_lap_servers

AUTH_LDAP_SERVER_URI = lambda: discover_ldap_servers("your.domain.com")

Troubleshooting

You can check what records are published via:

$ nslookup -type=SRV _ldap._tcp.your.domain.com

and compare to:

$ python ldap_auto_discover.py your.domain.com

Tests

Run the tests via

$ PYTHONPATH=. python tests/test_discover.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%