Goal: This«OpenLDAP tutorial» aims to show how to improve the basic server configuration viewed in OpenLDAP tutorial – Installation and basic configuration post. This reconfiguration allows to customize settings made by default in the installation procedure. This is a further step to prepare th server use in a real environment. Prerequisite: The OpenLDAP server is installed with its default configuration. The installation is done on a host with Debian / Ubuntu OS or compliant. This reconfiguration must be made before filling the directory server with data. The reason is this will reset the database and set its contents to empty. This reconfiguration is done with the command:
sudo dpkg-reconfigure slapdFollowing this a series of screens appear and asks you to enter settings or make choices.
Reconfiguring OpenLDAP – step 1

Reconfiguring OpenLDAP – step 2

Reconfiguring OpenLDAP – step 3

Reconfiguring OpenLDAP – step 4

Reconfiguring OpenLDAP – step 5

Reconfiguring OpenLDAP – step 6

Reconfiguring OpenLDAP – step 7

Reconfiguring OpenLDAP – step 8 (if it apears)

Check the new setting
sudo ldapsearch -Y external -H ldapi:/// -b dc=ldaptuto,dc=net ↵ SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 # extended LDIF # # LDAPv3 # base <dc=ldaptuto,dc=net> with scope subtree # filter: (objectclass=*) # requesting: ALL # # ldaptuto.net dn: dc=ldaptuto,dc=net objectClass: top objectClass: dcObject objectClass: organization o: OpenLDAP tutorial dc: ldaptuto # admin, ldaptuto.net dn: cn=admin,dc=ldaptuto,dc=net objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator # search result search: 2 result: 0 Success # numResponses: 3 # numEntries: 2Noice the new DIT dc=ldaptuto,dc=net and its label o: OpenLDAP tutorial]]>