OpenLDAP Installation
  Download PDF

How To Install OpenLDAP

On an empty OpenLDAP, you can initialize your directory by importing the following LDIF entries. Change “mydomain” to match your organization name and save the LDIF content to a root.ldif file.

dn: dc=mydomain
dc: mydomain
ou: rootObject
objectClass: top
objectClass: dcObject
objectClass: organizationalUnit

dn: cn=admin,dc=mydomain
cn: admin
sn: admin
objectClass: person
objectClass: inetOrgPerson

Use the following command to initialize your OpenLDAP directory.

ldapadd -x -D "cn=admin,dc=mydomain" -W -f root.ldif

The setting “user_oclasses” in the /opt/webadm/conf/webadm.conf file is used to build the LDAP search filter when auth_mode is set to “Domain”. If your super admin user does not have one of the listed object classes, add one of its object classes to the list. For example, with the LDIF proceeding, the user_oclasses must include the “account” object class.