Actions
Support #987
open
DC
DC
Install LLDAP on FreeBSD
Support #987:
Install LLDAP on FreeBSD
Description
This is a guide on setting up LLDAP on FreeBSD 14.
Prepare the Environment¶
- Before installation of the components, make sure everything is up to date using the following command:
pkg update -f && pkg upgrade
Install LLDAP¶
- Install the LLDAP package:
pkg install lldap
- Copy the example config to the LLDAP directory
cp /usr/local/share/lldap/ldap_config.toml.example /usr/local/lldap_server/lldap_config.toml
- Edit the LLDAP config:
vi /usr/local/lldap_server/lldap_config.toml
- Change the following config values accordingly:
ldap_host = "127.0.0.1" ldap_port = 3890 http_host = "127.0.0.1" http_port = 17170 http_url = "http://localhost" jwt_secret = "REPLACE_WITH_RANDOM" ldap_base_dn = "dc=example,dc=com" ldap_user_dn = "admin" ldap_user_email = "admin@example.com" ldap_user_pass = "SuperSecretPassword" database_url = "sqlite:///usr/local/lldap_server/users.db?mode=rwc"
NOTE : useopenssl rand -base64 15to generate a secret key for jwt_secret
- Change the following config values accordingly:
- Start and enable LLDAP on boot up:
sysrc lldap_enable=YES service lldap start
- Log into the web interface on http://localhost:17170 with the username admin and the password set in the config.
Resources¶
DC Updated by Daniel Curtis about 19 hours ago
- Description updated (diff)
- Status changed from New to Resolved
Actions