static slap_overinst slapi;
+static Slapi_PBlock *
+slapi_over_pblock_new ( Operation *op )
+{
+ Slapi_PBlock *pb;
+
+ pb = slapi_pblock_new();
+ if ( pb == NULL )
+ return NULL;
+
+ slapi_int_pblock_set_operation( pb, op );
+
+ return pb;
+}
+
static int
slapi_over_compute_output(
computed_attr_context *c,
AttributeName *anp;
AccessControlState acl_state = ACL_STATE_INIT;
- ctx.cac_pb = SLAPI_OPERATION_PBLOCK( op );
+ ctx.cac_pb = slapi_over_pblock_new( op );
ctx.cac_op = op;
ctx.cac_private = rs;
ctx.cac_acl_state = &acl_state;
}
}
+ slapi_pblock_destroy( ctx.cac_pb );
+
return SLAP_CB_CONTINUE;
}
assert( rs->sr_type == REP_SEARCH || rs->sr_type == REP_SEARCHREF );
- pb = slapi_pblock_new(); /* create a new pblock to not trample on
- * result controls
- */
+ /* create a new pblock to not trample on result controls */
+ pb = slapi_over_pblock_new( op );
- slapi_int_pblock_set_operation( pb, op );
slapi_pblock_set( pb, SLAPI_RESCONTROLS, (void *)rs->sr_ctrls );
slapi_pblock_set( pb, SLAPI_SEARCH_RESULT_ENTRY, (void *)rs->sr_entry );
}
static int
-slapi_over_merge_controls( Operation *op, SlapReply *rs, Slapi_PBlock *pb)
+slapi_over_merge_controls( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
LDAPControl **slapiControls = NULL, **mergedControls;
int nSlapiControls = 0;
int nResControls = 0;
slapi_pblock_get( pb, SLAPI_RESULT_MATCHED, (void **)&rs->sr_matched );
if ( type == SLAPI_PLUGIN_PRE_RESULT_FN ) {
- rc = slapi_over_merge_controls( op, rs, pb );
+ rc = slapi_over_merge_controls( op, rs );
}
return SLAP_CB_CONTINUE;
}
static int
-slapi_op_add_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_add_init( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+
slapi_pblock_set( pb, SLAPI_ADD_ENTRY, (void *)op->ora_e );
return LDAP_SUCCESS;
}
static int
-slapi_op_bind_preop_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_bind_preop_init( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+
slapi_pblock_set( pb, SLAPI_BIND_TARGET, (void *)op->o_req_dn.bv_val );
slapi_pblock_set( pb, SLAPI_BIND_METHOD, (void *)op->orb_method );
slapi_pblock_set( pb, SLAPI_BIND_CREDENTIALS, (void *)&op->orb_cred );
}
static int
-slapi_op_bind_postop_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_bind_postop_init( Operation *op, SlapReply *rs )
{
- char *dn = NULL;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ char *dn = NULL;
if ( rs->sr_err == LDAP_SUCCESS ) {
/* fix for ITS#2971 */
}
static int
-slapi_op_bind_callback( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_bind_callback( Operation *op, SlapReply *rs )
{
- int rc = rs->sr_err;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ int rc = rs->sr_err;
switch ( rc ) {
case SLAPI_BIND_SUCCESS:
}
static int
-slapi_op_compare_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_compare_init( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+
slapi_pblock_set( pb, SLAPI_COMPARE_TYPE, (void *)op->orc_ava->aa_desc->ad_cname.bv_val );
slapi_pblock_set( pb, SLAPI_COMPARE_VALUE, (void *)&op->orc_ava->aa_value );
}
static int
-slapi_op_modify_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_modify_init( Operation *op, SlapReply *rs )
{
- LDAPMod **modv = NULL;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ LDAPMod **modv = NULL;
modv = slapi_int_modifications2ldapmods( &op->orm_modlist );
slapi_pblock_set( pb, SLAPI_MODIFY_MODS, (void *)modv );
}
static int
-slapi_op_modify_callback( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_modify_callback( Operation *op, SlapReply *rs )
{
- LDAPMod **modv = NULL;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ LDAPMod **modv = NULL;
/* check preoperation result code */
if ( rs->sr_err < 0 ) {
}
static int
-slapi_op_modify_cleanup( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_modify_cleanup( Operation *op, SlapReply *rs )
{
- LDAPMod **modv = NULL;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ LDAPMod **modv = NULL;
slapi_pblock_get( pb, SLAPI_MODIFY_MODS, (void **)&modv );
}
static int
-slapi_op_modrdn_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_modrdn_init( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+
slapi_pblock_set( pb, SLAPI_MODRDN_NEWRDN, (void *)op->orr_newrdn.bv_val );
slapi_pblock_set( pb, SLAPI_MODRDN_NEWSUPERIOR, (void *)op->orr_newSup->bv_val );
slapi_pblock_set( pb, SLAPI_MODRDN_DELOLDRDN, (void *)op->orr_deleteoldrdn );
}
static int
-slapi_op_search_init( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_search_init( Operation *op, SlapReply *rs )
{
- char **attrs;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ char **attrs;
attrs = anlist2charray_x( op->ors_attrs, 0, op->o_tmpmemctx );
}
static int
-slapi_op_search_callback( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_search_callback( Operation *op, SlapReply *rs )
{
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+
/* check preoperation result code */
if ( rs->sr_err < 0 ) {
slapi_pblock_get( pb, SLAPI_RESULT_CODE, (void **)&rs->sr_err );
}
static int
-slapi_op_search_cleanup( Operation *op, SlapReply *rs, Slapi_PBlock *pb )
+slapi_op_search_cleanup( Operation *op, SlapReply *rs )
{
- char **attrs = NULL;
+ Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ char **attrs = NULL;
slapi_pblock_get( pb, SLAPI_SEARCH_ATTRS, (void *)&attrs );
return LDAP_SUCCESS;
}
-typedef int (slapi_over_callback)( Operation *, SlapReply *rs, Slapi_PBlock * );
-
struct slapi_op_info {
- int soi_preop; /* preoperation plugin parameter */
- int soi_postop; /* postoperation plugin parameter */
- slapi_over_callback *soi_preop_init; /* preoperation pblock init function */
- slapi_over_callback *soi_callback; /* preoperation result handler */
- slapi_over_callback *soi_postop_init; /* postoperation pblock init function */
- slapi_over_callback *soi_cleanup; /* cleanup function */
+ int soi_preop; /* preoperation plugin parameter */
+ int soi_postop; /* postoperation plugin parameter */
+ slap_response *soi_preop_init; /* preoperation pblock init function */
+ slap_response *soi_callback; /* preoperation result handler */
+ slap_response *soi_postop_init; /* postoperation pblock init function */
+ slap_response *soi_cleanup; /* cleanup function */
} slapi_op_dispatch_table[] = {
{
SLAPI_PLUGIN_PRE_BIND_FN,
slap_overinst *on;
slap_callback cb;
- pb = SLAPI_OPERATION_PBLOCK( op );
-
/*
* We check for op->o_extensions to verify that we are not
* processing a SLAPI internal operation. XXX
*/
- if ( pb == NULL || op->o_hdr->oh_extensions == NULL ) {
+ if ( op->o_hdr->oh_extensions == NULL ) {
return SLAP_CB_CONTINUE;
}
return SLAP_CB_CONTINUE;
}
- slapi_int_pblock_set_operation( pb, op );
+ pb = slapi_over_pblock_new( op );
+ /* XXX we need to fill this out for MMR support */
slapi_pblock_set( pb, SLAPI_TARGET_ADDRESS, NULL );
slapi_pblock_set( pb, SLAPI_TARGET_UNIQUEID, NULL );
slapi_pblock_set( pb, SLAPI_TARGET_DN, (void *)op->o_req_dn.bv_val );
cb.sc_response = slapi_over_response; /* call pre-entry/result plugins */
cb.sc_cleanup = slapi_over_cleanup; /* call post-entry/result plugins */
- cb.sc_private = opinfo;
+ cb.sc_private = pb;
cb.sc_next = op->o_callback;
op->o_callback = &cb;
* Call preoperation plugins
*/
if ( opinfo->soi_preop_init != NULL ) {
- rs->sr_err = (opinfo->soi_preop_init)( op, rs, pb );
+ rs->sr_err = (opinfo->soi_preop_init)( op, rs );
if ( rs->sr_err != LDAP_SUCCESS )
- return rs->sr_err;
+ goto cleanup;
}
rs->sr_err = slapi_int_call_plugins( op->o_bd, opinfo->soi_preop, pb );
goto cleanup;
}
} else {
- rc = (opinfo->soi_callback)( op, rs, pb );
+ rc = (opinfo->soi_callback)( op, rs );
if ( rc )
goto cleanup;
}
slapi_pblock_set( pb, SLAPI_RESULT_CODE, (void *)rs->sr_err );
if ( opinfo->soi_postop_init != NULL ) {
- (opinfo->soi_postop_init)( op, rs, pb );
+ (opinfo->soi_postop_init)( op, rs );
}
slapi_int_call_plugins( op->o_bd, opinfo->soi_postop, pb );
cleanup:
if ( opinfo->soi_cleanup != NULL ) {
- (opinfo->soi_cleanup)( op, rs, pb );
+ (opinfo->soi_cleanup)( op, rs );
}
op->o_callback = cb.sc_next;
+ slapi_pblock_destroy(pb);
return rs->sr_err;
}
int rc;
struct berval reqdata = BER_BVNULL;
- pb = SLAPI_OPERATION_PBLOCK( op );
- if ( pb == NULL ) {
- return SLAP_CB_CONTINUE;
- }
-
slapi_int_get_extop_plugin( &op->ore_reqoid, &callback );
if ( callback == NULL ) {
return SLAP_CB_CONTINUE;
}
- slapi_int_pblock_set_operation( pb, op );
+ pb = slapi_over_pblock_new( op );
if ( op->ore_reqdata != NULL ) {
reqdata = *op->ore_reqdata;
rc = (*callback)( pb );
if ( rc == SLAPI_PLUGIN_EXTENDED_SENT_RESULT ) {
+ slapi_pblock_destroy( pb );
return rc;
} else if ( rc == SLAPI_PLUGIN_EXTENDED_NOT_HANDLED ) {
+ slapi_pblock_destroy( pb );
return SLAP_CB_CONTINUE;
}
if ( rs->sr_rspdata != NULL )
ber_bvfree( rs->sr_rspdata );
+ slapi_pblock_destroy( pb );
+
return rs->sr_err;
}
AccessControlState *state,
slap_mask_t *maskp )
{
- int rc;
+ int rc;
+ Slapi_PBlock *pb;
+ slap_callback cb;
+
+ pb = slapi_over_pblock_new( op );
+
+ cb.sc_response = NULL;
+ cb.sc_cleanup = NULL;
+ cb.sc_private = pb;
+ cb.sc_next = op->o_callback;
+ op->o_callback = &cb;
rc = slapi_int_access_allowed( op, e, desc, val, access, state );
if ( rc != 0 ) {
rc = SLAP_CB_CONTINUE;
}
+ op->o_callback = cb.sc_next;
+ slapi_pblock_destroy( pb );
+
return rc;
}
{
Slapi_Entry *e;
int rc;
- Slapi_PBlock *pb = SLAPI_OPERATION_PBLOCK( op );
+ Slapi_PBlock *pb;
BackendDB *be = NULL;
BackendDB *be_orig = op->o_bd;
- if ( pb == NULL ) {
- return SLAP_CB_CONTINUE;
- }
-
if ( target != NULL && dn_match( &target->e_nname, gr_ndn ) ) {
e = target;
rc = 0;
return SLAP_CB_CONTINUE;
}
+ pb = slapi_over_pblock_new( op );
+
slapi_pblock_set( pb, SLAPI_X_GROUP_ENTRY, (void *)e );
slapi_pblock_set( pb, SLAPI_X_GROUP_OPERATION_DN, (void *)op_ndn->bv_val );
slapi_pblock_set( pb, SLAPI_X_GROUP_ATTRIBUTE, (void *)group_at->ad_cname.bv_val );
else
slapi_pblock_get( pb, SLAPI_RESULT_CODE, (void **)&rc );
- slapi_pblock_set( pb, SLAPI_X_GROUP_ENTRY, NULL );
- slapi_pblock_set( pb, SLAPI_X_GROUP_OPERATION_DN, NULL );
- slapi_pblock_set( pb, SLAPI_X_GROUP_ATTRIBUTE, NULL );
- slapi_pblock_set( pb, SLAPI_X_GROUP_TARGET_ENTRY, NULL );
+ slapi_pblock_destroy( pb );
if ( e != target ) {
op->o_bd = be;
*/
static int slapi_int_pblock_set_backend( Slapi_PBlock *pb, Backend *be )
{
- int rc;
-
- rc = slapi_pblock_set( pb, SLAPI_BACKEND, (void *)be );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_BACKEND, (void *)be );
if ( be != NULL ) {
- rc = slapi_pblock_set( pb, SLAPI_BE_TYPE, (void *)be->bd_info->bi_type );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_BE_TYPE, (void *)be->bd_info->bi_type );
}
- return LDAP_SUCCESS;
+ return 0;
}
/*
char *connAuthType;
int rc;
- rc = slapi_pblock_set( pb, SLAPI_CONNECTION, (void *)conn );
- if ( rc != LDAP_SUCCESS ) {
- return rc;
- }
+ slapi_pblock_set( pb, SLAPI_CONNECTION, (void *)conn );
if ( strncmp( conn->c_peer_name.bv_val, "IP=", 3 ) == 0 ) {
- rc = slapi_pblock_set( pb, SLAPI_CONN_CLIENTIP, (void *)&conn->c_peer_name.bv_val[3] );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_CONN_CLIENTIP, (void *)&conn->c_peer_name.bv_val[3] );
} else if ( strncmp( conn->c_peer_name.bv_val, "PATH=", 5 ) == 0 ) {
- rc = slapi_pblock_set( pb, SLAPI_X_CONN_CLIENTPATH, (void *)&conn->c_peer_name.bv_val[5] );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_X_CONN_CLIENTPATH, (void *)&conn->c_peer_name.bv_val[5] );
}
if ( strncmp( conn->c_sock_name.bv_val, "IP=", 3 ) == 0 ) {
- rc = slapi_pblock_set( pb, SLAPI_CONN_SERVERIP, (void *)&conn->c_sock_name.bv_val[3] );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_CONN_SERVERIP, (void *)&conn->c_sock_name.bv_val[3] );
} else if ( strncmp( conn->c_sock_name.bv_val, "PATH=", 5 ) == 0 ) {
- rc = slapi_pblock_set( pb, SLAPI_X_CONN_SERVERPATH, (void *)&conn->c_sock_name.bv_val[5] );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_X_CONN_SERVERPATH, (void *)&conn->c_sock_name.bv_val[5] );
}
#ifdef LDAP_CONNECTIONLESS
- rc = slapi_pblock_set( pb, SLAPI_X_CONN_IS_UDP, (void *)conn->c_is_udp );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_X_CONN_IS_UDP, (void *)conn->c_is_udp );
#endif
- rc = slapi_pblock_set( pb, SLAPI_CONN_ID, (void *)conn->c_connid );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_CONN_ID, (void *)conn->c_connid );
/* Returns pointer to static string */
connAuthType = Authorization2AuthType( &conn->c_authz,
#endif
1 );
if ( connAuthType != NULL ) {
- rc = slapi_pblock_set(pb, SLAPI_CONN_AUTHTYPE, (void *)connAuthType);
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set(pb, SLAPI_CONN_AUTHTYPE, (void *)connAuthType);
}
/* Returns pointer to allocated string */
#endif
0 );
if ( connAuthType != NULL ) {
- rc = slapi_pblock_set(pb, SLAPI_CONN_AUTHMETHOD, (void *)connAuthType);
+ slapi_pblock_set(pb, SLAPI_CONN_AUTHMETHOD, (void *)connAuthType);
/* slapi_pblock_set dups this itself */
slapi_ch_free( (void **)&connAuthType );
- if ( rc != LDAP_SUCCESS )
- return rc;
}
if ( conn->c_authz.sai_method != LDAP_AUTH_NONE &&
conn->c_authz.sai_dn.bv_val != NULL ) {
/* slapi_pblock_set dups this itself */
- rc = slapi_pblock_set(pb, SLAPI_CONN_DN, (void *)conn->c_authz.sai_dn.bv_val);
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set(pb, SLAPI_CONN_DN, (void *)conn->c_authz.sai_dn.bv_val);
}
- rc = slapi_pblock_set(pb, SLAPI_X_CONN_SSF, (void *)conn->c_ssf);
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set(pb, SLAPI_X_CONN_SSF, (void *)conn->c_ssf);
- rc = slapi_pblock_set(pb, SLAPI_X_CONN_SASL_CONTEXT,
+ slapi_pblock_set(pb, SLAPI_X_CONN_SASL_CONTEXT,
( conn->c_sasl_authctx != NULL ? conn->c_sasl_authctx :
conn->c_sasl_sockctx ) );
- if ( rc != LDAP_SUCCESS )
- return rc;
- return rc;
+ return 0;
}
#endif /* LDAP_SLAPI */
int rc;
char *opAuthType;
void *existingOp = NULL;
+ BackendDB *be_orig;
+
+ be_orig = op->o_bd;
- if ( op->o_bd != NULL ) {
- isRoot = be_isroot( op );
- isUpdateDn = be_isupdate( op );
+ if ( op->o_req_ndn.bv_len ) {
+ op->o_bd = select_backend( &op->o_req_ndn, 0, 0 );
+ if ( op->o_bd != NULL ) {
+ isRoot = be_isroot( op );
+ isUpdateDn = be_isupdate( op );
+ }
}
/* This should only be called once per operation */
slapi_pblock_get( pb, SLAPI_OPERATION, &existingOp );
assert( existingOp == NULL );
- rc = slapi_int_pblock_set_backend( pb, op->o_bd );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_int_pblock_set_connection( pb, op->o_conn );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_OPERATION, (void *)op );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_OPINITIATED_TIME, (void *)op->o_time );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_OPERATION_ID, (void *)op->o_opid );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_OPERATION_TYPE, (void *)op->o_tag );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_REQUESTOR_ISROOT, (void *)isRoot );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_REQUESTOR_ISUPDATEDN, (void *)isUpdateDn );
- if ( rc != LDAP_SUCCESS )
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_REQCONTROLS, (void *)op->o_ctrls );
- if ( rc != LDAP_SUCCESS)
- return rc;
-
- rc = slapi_pblock_set( pb, SLAPI_REQUESTOR_DN, (void *)op->o_ndn.bv_val );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_int_pblock_set_backend( pb, op->o_bd );
+ slapi_int_pblock_set_connection( pb, op->o_conn );
- rc = slapi_pblock_set( pb, SLAPI_MANAGEDSAIT, (void *)get_manageDSAit( op ) );
- if ( rc != LDAP_SUCCESS )
- return rc;
+ slapi_pblock_set( pb, SLAPI_OPERATION, (void *)op );
+ slapi_pblock_set( pb, SLAPI_OPINITIATED_TIME, (void *)op->o_time );
+ slapi_pblock_set( pb, SLAPI_OPERATION_ID, (void *)op->o_opid );
+ slapi_pblock_set( pb, SLAPI_OPERATION_TYPE, (void *)op->o_tag );
+ slapi_pblock_set( pb, SLAPI_REQUESTOR_ISROOT, (void *)isRoot );
+ slapi_pblock_set( pb, SLAPI_REQUESTOR_ISUPDATEDN, (void *)isUpdateDn );
+ slapi_pblock_set( pb, SLAPI_REQCONTROLS, (void *)op->o_ctrls );
+ slapi_pblock_set( pb, SLAPI_REQUESTOR_DN, (void *)op->o_ndn.bv_val );
+ slapi_pblock_set( pb, SLAPI_MANAGEDSAIT, (void *)get_manageDSAit( op ) );
+ slapi_pblock_get( pb, SLAPI_CONN_AUTHMETHOD, (void *)&opAuthType );
+ if ( opAuthType != NULL )
+ slapi_pblock_set( pb, SLAPI_OPERATION_AUTHTYPE, (void *)opAuthType );
- rc = slapi_pblock_get( pb, SLAPI_CONN_AUTHMETHOD, (void *)&opAuthType );
- if ( rc == LDAP_SUCCESS && opAuthType != NULL ) {
- /* Not quite sure what the point of this is. */
- rc = slapi_pblock_set( pb, SLAPI_OPERATION_AUTHTYPE, (void *)opAuthType );
- if ( rc != LDAP_SUCCESS )
- return rc;
- }
+ op->o_bd = be_orig;
- return LDAP_SUCCESS;
+ return 0;
#else
return -1;
#endif