[Date Prev][Date Next]
Patch to log failed simple binds (ITS#1809)
Full_Name: John Dalbec
OS: Red Hat Linux 7.1
Submission from: (NULL) (184.108.40.206)
OpenLDAP does not provide logging of failed LDAP binds.
This makes it possible for an attacker to brute-force LDAP passwords without
alerting the system administrator.
I propose the following patch (against CVS) to log failed simple LDAP binds.
(I'm not sure how to log failed SASL binds. Or does that happen already?)
I'm not sure of the best loglevel to use for this. I've selected LOG_WARNING
but you may prefer another choice. I built the message content from the
message for a successful bind, adding the peername to avoid having to log all
connections in order to be able to trace them back to an IP.
Constructive feedback appreciated, thanks.