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.

Stept to debug

1.- First of all, you have to add the DEBUG environment variable to your container

-e DEBUG: 65535

2.- You need to restart the Soffid LDAP container

sudo docker restart <YOUR_CONTAINER>

3.- In this point, you can check your LDAP

4.- Retrieve the log

5.- Delete the DEBUG environment variable

6.- Restart the Soffid LDAP container

Log level

Multiple log levels may be used and the levels are additive. To display what numbers correspond to what kind of debugging, consult the table below. The possible values for <integer> are:

LevelDescription
-1enable all debugging
0no debugging
1trace function calls
2debug packet handling
4heavy trace debugging
8connection management
16print out packets sent and received
32search filter processing
64configuration processing
128access control list processing
256stats log connections/operations/results
512stats log entries sent
1024print communication with shell backends
2048print entry parsing debugging
16384syncrepl consumer processing
32768only messages that get logged whatever log level is set

The desired log level can be input as a single integer that combines the (ORed) desired levels.