title: Active Directory to LDIF OpenLDAP
body: <p>How would I create an LDAP that mimics the structure of a typical Active Directory?</p>
  
  <p>I need the following values to be included in each user: 
  This isn't the right syntax but I want to add a user with a specific user name and password </p>
  
  <pre><code>dn: dc=users
  userlogin: USERNAME
  userPassword: PASSWORD
  objectclass: person
  userPrincipalName: USERNAME@domain.com
  sAMAccountName: USERNAME
  </code></pre>
  
  <p>I tried using a tldif, but I'm unsure how to create an appropriate Distinguished Name that allows for me to add users like the above syntax, or what equates to it.</p>
  
  <p>Ultimately several remote servers queries the OpenLDAP server with this sql query.</p>
  
  <pre><code>select sAMAccountName FROM '" + ConnectionPath + "' where objectclass='person' and userPrincipalName='"+ UserName + "'
  </code></pre>
  
  <p>Thanks! :)</p>