Skip to main content

How to debug Soffid LDAP?

Installation

Prerequisites

To install Soffid LDAP, you must install Docker. Despite Docker desktop can be used for testing purposes, Docker container runtime usage is recommended.

InstallationStept to debug

To1.- startFirst Soffidof LDAP,all, execute:you have to add the DEBUG environment variable to your container

docker-e volumeDEBUG: create65535
ldapconf

2.- You need to restart the Soffid LDAP container

sudo docker volumerestart creade ldapdata
docker run --name soffidldap -p 1389:389 -v ldapconf:/etc/ldap/slapd.d -v ldapdata:/var/lib/ldap -d -e SOFFID_SERVER=https://<SYNCSERVERNAMEYOUR_CONTAINER>:760 -e SOFFID_AGENT=<SOFFID_AGENT> -e USER=<ADMIN_USERNAME> -e PASSWORD=<ADMIN_PASSWORD> -e DN=<YOUR_BASE_DN> soffidldap

3.-

💻In Imagethis

image-1654601131618.png

Now,point, you can connectcheck toyour LDAP

4.- Retrieve the LDAPlog

Server

5.- usingDelete the userDEBUG nameenvironment andvariable

password

6.- used to createRestart the dockerSoffid instance.LDAP container

Docker commands

Stop the service
docker stop soffidldap
Start the service
docker start soffidldap
Remove the service
docker rm soffidldap

Docker Volumes

  • The initial configuration files are located in the ldapconf volume, usually in /var/lib/docker/volumes/ldapconf/_data
  • The initial data files are located in the ldapdata volume, usually in /var/lib/docker/volumes/ldapdata/_data