oscarzhou / openldap

Setup self-host openldap service with existing ldif file and TLS enabled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenLDAP

To learn this tutorial, you can read the step-by-step tutorial from my post. (5 mins)

Run up LDAP service

docker-compose up

Run up LDAP service with custom TLS certificates

docker-compose -f docker-compose-tls.yml up

Login admin panel

Open http://localhost:8090 with the webbrowser.

The login credential is

Login DN: cn=admin,dc=example,dc=org
Password: admin_pass

Test with ldap client tool

docker exec openldap_ldap_server_1 ldapsearch -x -H ldap://localhost:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin_pass

Test with ldap client tool with custom TLS certificate

env LDAPTLS_CACERT=/path/to/cert ldapsearch -x -H ldaps://localhost:636 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin_pass

References:

  1. Github osixia/openldap
  2. Build an OpenLDAP Docker Image That’s Populated With Users
  3. ldapwiki

About

Setup self-host openldap service with existing ldif file and TLS enabled