openldap

installation

sudo apt install slapd
sudo dpkg-reconfigure slapd

config

wget https://brucekomike.github.io/om-docs/remote/ubuntu/slapd/bootstrap.ldif
wget https://brucekomike.github.io/om-docs/remote/ubuntu/slapd/memberof2.ldif
wget https://brucekomike.github.io/om-docs/remote/ubuntu/slapd/memberof3.ldif

apply config

ldapadd -x -D "cn=admin,dc=<MY-DOMAIN>,dc=<COM>" -W -f bootstrap.ldif
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f memberof2.ldif
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f memberof3.ldif