title: Simulate an LDAP Server?
body: <p>For a number of reasons, I do not want to host an actual LDAP server. </p>
  
  <p>Instead, through PHP, I want to simulate the essential functions of an LDAP server. </p>
  
  <p>So I want, for instance, to be able to respond to ldap_search, ldap_connect, ldap_bind, ldap_unbind, etc.</p>
  
  <p>Results would come from MySQL.</p>
  
  <p>It looks like ldap_search would be a matter of returning the same response that an LDAP URL Query would return, which is like a JSON format, but I am unsure about e.g. ldap_bind.</p>
  
  <p>Right now I am just researching the feasibility of providing a "simulated" LDAP Server. I would greatly appreciate any thoughts on how much this would require, using PHP/MySQL.</p>
  
  <p>Thanks in advance!</p>