#define RB_SEND (0x8000U)
#define RB_UNWILLING_SEND (RB_UNWILLING|RB_SEND)
#define RB_REFERRAL_SEND (RB_REFERRAL|RB_SEND)
+#define RB_ERR_SEND (RB_ERR|RB_SEND)
static int
relay_back_swap_bd( Operation *op, SlapReply *rs )
}
bd = relay_back_select_backend( op, rs,
- ( LDAP_INVALID_CREDENTIALS | RB_ERR | RB_SEND ) );
+ ( LDAP_INVALID_CREDENTIALS | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
return relay_back_op( op, rs, bd, bd->be_bind,
- ( LDAP_INVALID_CREDENTIALS | RB_ERR | RB_SEND ) );
+ ( LDAP_INVALID_CREDENTIALS | RB_ERR_SEND ) );
}
int
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_NO_SUCH_OBJECT | RB_ERR | RB_SEND ) );
+ ( LDAP_NO_SUCH_OBJECT | RB_ERR_SEND ) );
if ( bd == NULL ) {
return rs->sr_err;
}
BackendDB *bd;
bd = relay_back_select_backend( op, rs,
- ( LDAP_SUCCESS | RB_ERR | RB_SEND ) );
+ ( LDAP_SUCCESS | RB_ERR_SEND ) );
/* FIXME: this test only works if there are no overlays, so
* it is nearly useless; if made stricter, no nested back-relays
* can be instantiated... too bad. */