Setting up a LLDAP server
General
LLDAP is a small LDAP server designed for directory services without the overhead of a full blown OpenLDAP server. LLDAP server is designed for easy management using a simple web gui. It lacks some of the features found in other directory servers, because its specificly designed for home use.
Install
Installing LLDAP is fairly simple and can be done in less then 5 minutes. start by logging in as root:
doas su -
Then we make sure the system is up to date and install wget:
apk update && apk upgrade && apk add wget
Then we make the directory for LLDAP to live in and install the software:
mkdir /opt/lldap && cd /opt/lldap
wget https://github.com/lldap/lldap/releases/download/v0.5.0/amd64-lldap.tar.gz && tar xzf amd64-lldap.tar.gz && mv amd64-lldap/* . && rn -rf amd64-lldap
Configure
To configure LLDAP we have to create a config file, and an rc file to start it automaticly upon boot: Template:Hc Replace domain.tld with your chose domain name. Next we need to create an openrc file so we can automaticly start lldap:
Template:Hc This is not an extensive file, but it gets you running and ensures lldap starts and works correctly. Now we need to add it to the default runlevel and start the service
chmod +x /etc/init.d/lldap && rc-update add lldap
Use
To use LLDAP we can browse to http://<ip>:17170 and login with the credentials we specified in the config file.
This is a basic configuration. You can now connect other services that support ldap logins to LLDAP.
Troubleshooting
- Some troubleshooting information