Basic LDAP Installation
This post is based on Debian 7.8 The server should have a static IP address configured by a DHCP server and not manually set in the LDAP interface configurations. I use 192.168.20.5 as my IP address and my domain is “kirk”. Server has a really unoriginal hostname as LDAP. Normally I should not use root when working with a server but have done so here instead of using sudo. It should be able to used for Ubuntu servers as well.
Installing OpenLDAP is as follows:
apt-get install slapd ldap-utils
A small configuration starts where it will prompt for creation of a Administrator password. Add one and confirm it.
The ldap software is now install on the system
Configuration is in 2 parts.
- edit of the ldap.conf file
- reconfiguration of the dpkg slapd
First I will edit the configuration file to make the OpenLDAP server match my setup.
# LDAP Defaults
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
# TLS certificates (needed for GnuTLS)
In my case hostname was ldap.kirk I have no public domain so my dc=kirk and no more.
Save and restart the slapd service
service slapd restart
Run the “dpkg-reconfigure slapd” reconfigure the LDAP package.
It will prompt for some question and for my network it is as followed:
I chose the default HDB database based on the configuration recommendation.
I did choose not to delete the db when purged
Select Yes and move the old database files.
I don’t want to use LDAPv2 protocol so I selected No.
Now to check if the configuration is gone wall:
Next LDAP Posts
- Greating users
- Installing Gosa for easy management