1. Install the following packages
(Assuming that yum repository is already configured)
# yum -y install openldap-clients openldap-servers
2. Start and Enable slapd service
# systemctl start slapd
# systemctl enable slapd
# systemctl status slapd
3. create LDAP admin password
# slappasswd
e.g. set it as redhat
4. Modify the olcSuffix and olcRootDN attributes in the LDAP database using ldapmodify
a. prepare my_config.ldif
dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcSuffix olcSuffix: dc=example,dc=com
dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcRootDN olcRootDN: cn=admin,dc=example,dc=com
|
References
1. https://www.golinuxcloud.com/install-and-configure-openldap-centos-7-linux/
|