[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Patch to log failed binds




You should submit your patch to ITS http://www.openldap.org/its/ if you haven't already.


--Kervin

John Dalbec wrote:
I've created a patch to log failed simple binds to the LDAP directory. I'm not sure how to do the same for SASL, but I don't have it set up
anyway.
Feedback is appreciated.
Thanks,
John


--- openldap-2.0.21/servers/slapd/bind.c.logbind Fri Jan 4 15:38:26
2002
+++ openldap-2.0.21/servers/slapd/bind.c Mon May 6 17:22:25 2002
@@ -402,6 +402,10 @@
ret = (*be->be_bind)( be, conn, op, dn, ndn,
method, &cred, &edn );
+ if ( ret != 0 )
+ syslog( LOG_WARNING, "conn=%ld %s op=%d BINDFAIL dn=\"%s\"
method=%ld\n",
+ op->o_connid, conn->c_peer_name, op->o_opid, ndn, (unsigned long)
method, 0 );
+
if ( ret == 0 ) {
ldap_pvt_thread_mutex_lock( &conn->c_mutex );