Lines Matching refs:op
25 bdb_modrdn( Operation *op, SlapReply *rs )
27 struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
47 int manageDSAit = get_manageDSAit( op );
68 op->o_req_dn.bv_val,op->oq_modrdn.rs_newrdn.bv_val,
69 op->oq_modrdn.rs_newSup ? op->oq_modrdn.rs_newSup->bv_val : "NULL" );
72 if( op->o_txnSpec ) {
74 ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
75 if( op->o_conn->c_txn == CONN_TXN_INACTIVE ) {
79 } else if( op->o_conn->c_txn == CONN_TXN_SETTLE ) {
84 if( op->o_conn->c_txn_backend == NULL ) {
85 op->o_conn->c_txn_backend = op->o_bd;
87 } else if( op->o_conn->c_txn_backend != op->o_bd ) {
100 ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
103 send_ldap_result( op, rs );
111 slap_mods_opattrs( op, &op->orr_modlist, 1 );
136 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
138 op->o_do_not_cache = opinfo.boi_acl_cache;
144 if ( op->o_abandon ) {
169 opinfo.boi_acl_cache = op->o_do_not_cache;
170 LDAP_SLIST_INSERT_HEAD( &op->o_extra, &opinfo.boi_oe, oe_next );
173 rs->sr_err = bdb_dn2entry( op, ltid, &op->o_req_ndn, &ei, 1,
200 ? get_entry_referrals( op, e )
207 &op->o_req_dn, LDAP_SCOPE_DEFAULT );
211 send_ldap_result( op, rs );
221 if ( get_assert( op ) &&
222 ( test_filter( op, e, get_assertion( op )) != LDAP_COMPARE_TRUE ))
229 rs->sr_err = access_allowed( op, e, entry, NULL, ACL_WRITE, NULL );
245 rs->sr_err = bdb_cache_children( op, ltid, e );
255 op->o_req_dn.bv_val, 0, 0);
274 rs->sr_ref = get_entry_referrals( op, e );
281 send_ldap_result( op, rs );
289 if ( be_issuffix( op->o_bd, &e->e_nname ) ) {
308 rs->sr_err = bdb_cache_find_id( op, ltid,
340 rs->sr_err = access_allowed( op, p,
342 op->oq_modrdn.rs_newSup == NULL ?
379 if ( op->oq_modrdn.rs_newSup != NULL ) {
383 op->oq_modrdn.rs_newSup->bv_val, 0, 0 );
386 if( dn_match( &p_ndn, op->oq_modrdn.rs_nnewSup ) ) {
389 op->oq_modrdn.rs_newSup->bv_val, p_dn.bv_val, 0 );
390 op->oq_modrdn.rs_newSup = NULL; /* ignore newSuperior */
403 if ( op->oq_modrdn.rs_newSup != NULL ) {
404 if ( op->oq_modrdn.rs_newSup->bv_len ) {
405 np_dn = op->oq_modrdn.rs_newSup;
406 np_ndn = op->oq_modrdn.rs_nnewSup;
417 rs->sr_err = bdb_dn2entry( op, ltid, np_ndn,
452 rs->sr_err = access_allowed( op, np, children,
497 if ( be_issuffix( op->o_bd, (struct berval *)&slap_empty_bv )
498 || be_isupdate( op ) ) {
502 rs->sr_err = access_allowed( op, np,
535 build_new_dn( &new_dn, new_parent_dn, &op->oq_modrdn.rs_newrdn, NULL );
540 dnNormalize( 0, NULL, NULL, &new_dn, &bv, op->o_tmpmemctx );
543 op->o_tmpfree( bv.bv_val, op->o_tmpmemctx );
551 rs->sr_err = bdb_cache_find_ndn ( op, ltid, &new_ndn, &nei );
571 assert( op->orr_modlist != NULL );
573 if( op->o_preread ) {
578 if( slap_read_controls( op, rs, e,
584 if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
606 rs->sr_err = bdb_dn2id_delete( op, lt2, eip, e );
629 rs->sr_err = bdb_dn2id_add( op, lt2, neip ? neip : eip, &dummy );
648 rs->sr_err = bdb_modify_internal( op, lt2, op->orr_modlist, &dummy,
668 rs->sr_err = bdb_id2entry_update( op->o_bd, lt2, &dummy );
686 rs->sr_err = bdb_cache_children( op, lt2, p );
715 if( op->o_postread ) {
720 if( slap_read_controls( op, rs, &dummy,
726 if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
734 if( op->o_noop ) {
736 rs->sr_text = "txn_abort (no-op) failed";
746 rc = bdb_cache_modrdn( bdb, e, &op->orr_nnewrdn, &dummy, neip,
765 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
780 op->o_noop ? " (no-op)" : "",
781 dummy.e_id, op->o_req_dn.bv_val );
789 send_ldap_result( op, rs );
797 op->o_delete_glue_parent = 1;
801 slap_graduate_commit_csn( op );
826 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
830 slap_sl_free( (*preread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
831 slap_sl_free( *preread_ctrl, op->o_tmpmemctx );
834 slap_sl_free( (*postread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
835 slap_sl_free( *postread_ctrl, op->o_tmpmemctx );