Ldap Server Linux
sudo apt install slapd  ldap-utils

Nos pide ingresar la password del administrador ldap (ldapadmin)

ocm@grajuelinux:~$ sudo service slapd status
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd; bad; vendor preset: enabled)
   Active: active (running) since mar 2018-01-16 13:05:45 CET; 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 16558 ExecStop=/etc/init.d/slapd stop (code=exited, status=0/SUCCESS)
  Process: 16597 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/slapd.service
           └─16604 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d

ene 16 13:05:45 grajuelinux systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
ene 16 13:05:45 grajuelinux slapd[16597]:  * Starting OpenLDAP slapd
ene 16 13:05:45 grajuelinux slapd[16603]: @(#) $OpenLDAP: slapd  (Ubuntu) (May 30 2017 19:20:53) $
                                                  buildd@lgw01-18:/build/openldap-JXEADB/openldap-2.4.42+dfsg/debian/build/servers/sl
ene 16 13:05:45 grajuelinux slapd[16604]: slapd starting
ene 16 13:05:45 grajuelinux slapd[16597]:    ...done.
ene 16 13:05:45 grajuelinux systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).

lo iniciamos y verificamos:

ocm@grajuelinux:~$ sudo service slapd start

ocm@grajuelinux:~$ sudo netstat -tnlp
Conexiones activas de Internet (solo servidores)
Proto  Recib Enviad Dirección local         Dirección remota       Estado       PID/Program name
tcp        0      0 0.0.0.0:389             0.0.0.0:*               ESCUCHAR    16494/slapd      
tcp6       0      0 :::389                  :::*                    ESCUCHAR    16494/slapd

Ahora configuramos el directorio:

sudo apt install slapd  ldap-utils
dIntroduzca el nombre de dominio DNS:                                                                           │ 
         │                                                                                                                │ 
         │ example__________

Nombre de la organización:                                                             │ 
                     │                                                                                        │ 
                     │ example____________________________________________________________________________ │ 
                     │                                                                                        │ 
                     │                                         <

Motor de base de datos a utilizar:                                                                                             │ 
                                                               │ 
 │                                                              MDB

Probamos la conexión:

root@grajuelinux:/etc/ldap# ldapwhoami -H ldap:// -x
anonymous

Ahora instalamos un frontend para administrar el ldap:

/etc/phpldapadmin/config.php

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-openldap-and-phpldapadmin-on-ubuntu-16-04

Ahora configuramos la interfaz phpmyadmin

ocm@grajuelinux:/etc/phpldapadmin$ sudo diff config.php config.phpBAK 
161c161
< // $config->custom->appearance['hide_template_warning'] = true;
---
> // $config->custom->appearance['hide_template_warning'] = false;
286c286
< $servers->setValue('server','name','Grajuela LDAP Server');
---
> $servers->setValue('server','name','My LDAP Server');
326c326
< #$servers->setValue('login','bind_id','cn=admin,dc=example,dc=com');
---
> $servers->setValue('login','bind_id','cn=admin,dc=example,dc=com');
ocm@grajuelinux:/etc/phpldapadmin$