How would I create an LDAP that mimics the structure of a typical Active Directory?
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
dn: dc=users
userlogin: USERNAME
userPassword: PASSWORD
objectclass: person
userPrincipalName: USERNAME@domain.com
sAMAccountName: USERNAME
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.
Ultimately several remote servers queries the OpenLDAP server with this sql query.
select sAMAccountName FROM '" + ConnectionPath + "' where objectclass='person' and userPrincipalName='"+ UserName + "'
Thanks! :)