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.
source share