]> git.sur5r.net Git - openldap/commitdiff
don't send error with back-meta
authorPierangelo Masarati <ando@openldap.org>
Mon, 9 Jan 2006 15:13:29 +0000 (15:13 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 9 Jan 2006 15:13:29 +0000 (15:13 +0000)
servers/slapd/back-ldap/back-ldap.h
servers/slapd/back-meta/bind.c

index f994fd116b072005ec3bc6a3418cd6f6812b0f04..dd16d53d05f5b769fdbcc4788b2e5441df75c8d3 100644 (file)
@@ -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 */
index cc2b5bcb99788edcecebe6b410356a462388c06e..32389a75c15adaf5da917c4cde0fb127be27d90c 100644 (file)
@@ -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 ];