Install
apt-get update
apt-get install slapd ldap-utils
Set password for admin
Configure
vim /etc/ldap/ldap.conf (not existing)
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE dc=example,dc=com
URI ldap://10.10.0.100 ldap://10.10.0.100:389
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
Start reconfigure
dpkg-reconfigure slapd
Omit OpenLDAP server config: No
DNS domain name: example.com
Orgianization name: MyCompany
Administrato password:
Database backend to use: HDB
Do you want the database to be removed when slapd is purged: Yes
Move old database: Yes (backup of database)
Allow LDAPv2 protocol: No
Now you can see your config
ldapsearch -x
Leave a Reply