From: Pierangelo Masarati Date: Mon, 9 Jan 2006 15:13:29 +0000 (+0000) Subject: don't send error with back-meta X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~382 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=543c588772b22a029b60e72e45e68032935ecd54;p=openldap don't send error with back-meta --- diff --git a/servers/slapd/back-ldap/back-ldap.h b/servers/slapd/back-ldap/back-ldap.h index f994fd116b..dd16d53d05 100644 --- a/servers/slapd/back-ldap/back-ldap.h +++ b/servers/slapd/back-ldap/back-ldap.h @@ -199,7 +199,10 @@ typedef enum ldap_back_send_t { LDAP_BACK_SENDERR = 0x02, LDAP_BACK_SENDRESULT = (LDAP_BACK_SENDOK|LDAP_BACK_SENDERR), LDAP_BACK_BINDING = 0x04, - LDAP_BACK_BIND_SERR = (LDAP_BACK_BINDING|LDAP_BACK_SENDERR) + LDAP_BACK_BIND_DONTSEND = (LDAP_BACK_BINDING), + LDAP_BACK_BIND_SOK = (LDAP_BACK_BINDING|LDAP_BACK_SENDOK), + LDAP_BACK_BIND_SERR = (LDAP_BACK_BINDING|LDAP_BACK_SENDERR), + LDAP_BACK_BIND_SRES = (LDAP_BACK_BINDING|LDAP_BACK_SENDRESULT) } ldap_back_send_t; /* define to use asynchronous StartTLS */ diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index cc2b5bcb99..32389a75c1 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -91,7 +91,7 @@ meta_back_bind( Operation *op, SlapReply *rs ) /* we need meta_back_getconn() not send result even on error, * because we want to intercept the error and make it * invalidCredentials */ - mc = meta_back_getconn( op, rs, NULL, LDAP_BACK_BIND_SERR ); + mc = meta_back_getconn( op, rs, NULL, LDAP_BACK_BIND_DONTSEND ); if ( !mc ) { char buf[ SLAP_TEXT_BUFLEN ];