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.

SteptSteps 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:

Level Description
-1 enable all debugging
0 no debugging
1 trace function calls
2 debug packet handling
4 heavy trace debugging
8 connection management
16 print out packets sent and received
32 search filter processing
64 configuration processing
128 access control list processing
256 stats log connections/operations/results
512 stats log entries sent
1024 print communication with shell backends
2048 print entry parsing debugging
16384 syncrepl consumer processing
32768 only 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.