Project

General

Profile

Actions

Support #987

open
DC DC

Install LLDAP on FreeBSD

Support #987: Install LLDAP on FreeBSD

Added by Daniel Curtis about 19 hours ago. Updated about 19 hours ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Directory Server
Target version:
-
Start date:
12/16/2025
Due date:
% Done:

0%

Estimated time:
0:30 h
Spent time:

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 : use openssl rand -base64 15 to generate a secret key for jwt_secret
  • 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 Actions #1

  • Description updated (diff)
  • Status changed from New to Resolved
Actions

Also available in: PDF Atom