This is a Python module that implements the socketserver.BaseRequestHandler
interface for LDAP. It provides stubs for all operations (BIND, SEARCH, ...) Override the stubs you need with your own code to provide actual functionality for them. This seems to be the closest thing to an LDAP server in Python that anyone has tried to build (because, who really wants to deal with LDAP?)