Openldap quick setup guide for rhel/centos/sl/oracle linux 5

Install openldap by issuing yum command :

# yum install *openldap* -y

set the slap password

#slappasswd

edit the openldap configuration file.

#vi /etc/openldap/slapd.conf

copy generated password  from slappasswd  paste it and do neccessary changes.


# vi /etc/openldap/ldap.conf

add line
HOST  127.0.0.1
BASE dc=example,dc=com
save and exit

#cp /etc/openldap/DB_CONFIG.example /ver/lib/ldap/DB_CONFIG


#chkconfig --levels 235 ldap on


#vi /usr/share/openldap/migration/migrate_common.ph
change default mail domain and default base

#/usr/share/openldap/migration/migrate_base.pl > /etc/openldap/example.ldif

bellow is the command for adding an entry from a ldif file

# ldapadd -a -W -x -D "cn=Manager,dc=example,dc=com" -f /etc/openldap/example.ldif

enterpassword:

restart the service


#service ldap restart


Comments

Popular posts from this blog

Running web ssh client on port 443 /80 with nginx as reverse proxy

Running cockpit behind nginx reverse proxy with nginx ssl and cockpit non ssl

Setup VOD streaming server with nginx using RTMP on Ubuntu 18.04