I need to log authentication failure on OpenLDAP. What is the proper log level bit for that? Or is there another configuration for such a thing?
Asked
Active
Viewed 5,608 times
2 Answers
3
Authentication failure is logged with err=49
- Invalid Credential
at default loglevel
256 - (0x100 stats) stats log connections/operations/results:
$ grep 'err=49' -B1 /path/to/ldap.log
slapd[28269]: conn=83767 op=2 BIND dn="cn=x,ou=y,dc=z,dc=t" method=128
slapd[28269]: conn=83767 op=2 RESULT tag=97 err=49 text=

quanta
- 51,413
- 19
- 159
- 217
0
I'm not sure offhand which bit toggles this (or if it's discretely logged).
If I had to hazard a guess I would say probably 128 (ACL processing) or 256 (Stats - Connections/Operations/Results)

voretaq7
- 79,879
- 17
- 130
- 214