http://www.openldap.org/doc/admin21/runningslapd.html
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 file 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
depuis les sources :
/* original subsystem selection mechanism */
define LDAP_DEBUG_TRACE 0x0001
define LDAP_DEBUG_PACKETS 0x0002
define LDAP_DEBUG_ARGS 0x0004
define LDAP_DEBUG_CONNS 0x0008
define LDAP_DEBUG_BER 0x0010
define LDAP_DEBUG_FILTER 0x0020
define LDAP_DEBUG_CONFIG 0x0040
define LDAP_DEBUG_ACL 0x0080
define LDAP_DEBUG_STATS 0x0100
define LDAP_DEBUG_STATS2 0x0200
define LDAP_DEBUG_SHELL 0x0400
define LDAP_DEBUG_PARSE 0x0800
define LDAP_DEBUG_SYNC 0x4000
define LDAP_DEBUG_NONE 0x8000
define LDAP_DEBUG_ANY -1
On retrouve bien la même chose mais avec un format hexadécimal beaucoup plus parlant.
Soit :
echo "obase=16;16386" | bc
4002
Je me rappelle que slapd fourni un numéro de debug lorsqu’une erreur survient mais je ne sais plus lequel (16386 ?)
Pour le debug cela fonctionne donc bit à bit, à chaque bit est associé un type d’information.