How to create an LDAP mock server for a Django project?

I am using django-auth-ldap and wondered what is the easiest way to create a python mock ldap server. The problem occurs when I leave the network where the ldap server is located. Testing is another scenario. I want to avoid creating an instance of a real ldap server locally.

+4
source share
1 answer

django-auth-ldap tests.py includes a simple ldap layout for native tests. This was highlighted by someone else in the fakeldap package, although I did not follow the progress. The correct answer should probably start with fakeldap and contribute if necessary.

UPDATE: A more serious effort to unscrew the layout of the LDAP layer now.

+4
source

All Articles