$ sudo hostname set-hostname nuc00.projectkoios.com
add the IP address and fully qualified domain name to /etc/hosts
$ sudo vi /etc/hosts
10.0.0.10 nuc00.projectkoios.com nuc00
install the packages we need from apt-get
$ sudo apt-get- y install slapd ldap-utils
create a base DN for users and groups
$ vi basedn.ldif
with the contents:
dn: ou=people, dc=projectkoios, dc=com
objectClass: organizationalUnit
ou: people
dn: ou=groups, dc=projectkoios, dc=com
objectClass: organizationalUnit
ou: groups
then add these entries:
$ ldapadd -x -D 'cn=admin,dc=projectkoios,dc=com' -W -f basedn.ldif
start slapd
ldap start
[1] https://www.openldap.org/doc/admin24/quickstart.html
[2] https://computingforgeeks.com/install-and-configure-openldap-server-ubuntu/
[3] https://www.howtoforge.com/linux_ldap_authentication