How to create mock LDAP server for Django project?
Asked Answered
A

1

7

I'm using django-auth-ldap and was wondering what is the easiest way to create a python mock ldap server. The problem arises when I'm developing away from the network the ldap server is located on. Testing is another scenario. I want to avoid creating an instance of an actual ldap server locally.

Ammadis answered 17/4, 2013 at 0:21 Comment(0)
A
5

django-auth-ldap's tests.py includes a simple mock ldap for its own tests. This was spun off by someone else into the fakeldap package, although I haven't been following progress. The right answer is probably to start with fakeldap and contribute if necessary.

UPDATE: A more serious effort to spin off a mock LDAP layer is currently underway.

Anacreon answered 17/4, 2013 at 21:33 Comment(1)
Thanks! That project looks interesting, will give it a go.Ammadis

© 2022 - 2024 — McMap. All rights reserved.