title: Connecting to a dummy ldap3 Active Directory server
body: <p>I was reading on how to use <a href="https://github.com/cannatag/ldap3" rel="noreferrer">ldap3</a> for mocking, and got this:</p>
  <pre class="lang-py prettyprint-override"><code>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()
  </code></pre>
  <p>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?</p>
  <p>Context - I want to add active directory authentication to a django app using <code>ldap3</code>. This is meant to be a first tier for testing the authentication function.</p>