I was reading on how to use ldap3 for mocking, and got this:
from ldap3 import Server, Connection, OFFLINE_AD_2012_R2, MOCK_SYNC
mock_server = Server('dummy_ad', get_info=OFFLINE_AD_2012_R2)
mock_conn = Connection(mock_server, client_strategy=MOCK_SYNC)
mock_conn.bind()
Is it possible to have just the server run in one Python shell with some dummy users/passwords, and then connect and test authentication from another shell via ldap3?
Context - I want to add active directory authentication to a django app using ldap3
. This is meant to be a first tier for testing the authentication function.