Ok, here is the beginning of the answer:
Once you have installed OPENLdap
A - edit your slapd.conf to:
1) Change the included circuits
include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetperson.schema
2) Modify schema files as described in this FAQ
3) Change your naming context (I personally use HDB as a backend)
database hdb suffix "dc=dom,dc=com" rootdn "cn=Manager,dc=dom,dc=com" rootpw secret directory /usr/local/var/openldap-hdb
4) Then restart the directory
B - Insert your root
Here is the LDIF file (root.ldif)
dn: dc=dom,dc=com objectclass: dcObject objectclass: organization o: Company name dc: dom
Here is the command line
ldapadd βx βD "cn=Manager,dc=dom,dc=com" -W βf root.ldif
C - Insert User
Here is the LDIF file (user.ldif)
dn: cn=user1,dc=dom,dc=com objectClass: inetOrgPerson sn: users cn: user1 telephoneNumber: 9999
Here is the command line
ldapadd βx βD "cn=Manager,dc=dom,dc=com" -W βf user.ldif
D - tip
Apache directory studio , for me, a VERY good LDAP browser, it is Open Source, it runs on top of java on Linux and Windows. Using it, you can graphically view AD and OpenLdap and simply click on parts B and C.
Active Directory Schema (classes and attributes) are documented in MSDN. For example, here is information about groupType . Is that what you expect?