Lines Matching refs:op

35 backsql_modrdn( Operation *op, SlapReply *rs )
37 backsql_info *bi = (backsql_info*)op->o_bd->be_private;
53 int manageDSAit = get_manageDSAit( op );
54 struct berval *newSuperior = op->oq_modrdn.rs_newSup;
58 op->o_req_dn.bv_val, op->oq_modrdn.rs_newrdn.bv_val,
61 rs->sr_err = backsql_get_db_conn( op, &dbh );
73 rs->sr_err = backsql_init_search( &bsi, &op->o_req_ndn,
75 (time_t)(-1), NULL, dbh, op, rs,
84 dn_match( &op->o_req_ndn, &bsi.bsi_e->e_nname ) )
120 if ( get_assert( op ) &&
121 ( test_filter( op, &r, get_assertion( op ) )
129 if ( backsql_has_children( op, dbh, &op->o_req_ndn ) == LDAP_COMPARE_TRUE ) {
132 op->o_req_dn.bv_val, 0, 0 );
142 if ( !access_allowed( op, &r, slap_schema.si_ad_entry,
149 dnParent( &op->o_req_dn, &pdn );
150 dnParent( &op->o_req_ndn, &pndn );
172 (time_t)(-1), NULL, dbh, op, rs,
194 if ( !access_allowed( op, &p, slap_schema.si_ad_children, NULL,
203 (void)backsql_free_entryID( &bsi.bsi_base_id, 0, op->o_tmpmemctx );
218 new_npdn = op->oq_modrdn.rs_nnewSup;
226 (time_t)(-1), NULL, dbh, op, rs,
249 if ( !access_allowed( op, &n, slap_schema.si_ad_children,
274 if ( newSuperior && dn_match( &op->o_req_ndn, new_npdn ) ) {
284 build_new_dn( &new_dn, new_pdn, &op->oq_modrdn.rs_newrdn,
285 op->o_tmpmemctx );
286 build_new_dn( &new_ndn, new_npdn, &op->oq_modrdn.rs_nnewrdn,
287 op->o_tmpmemctx );
293 if ( backsql_api_dn2odbc( op, rs, &realnew_dn ) ) {
296 op->o_req_dn.bv_val, realnew_dn.bv_val, 0 );
399 assert( op->orr_modlist != NULL );
401 slap_mods_opattrs( op, &op->orr_modlist, 1 );
405 rs->sr_err = backsql_modify_internal( op, rs, dbh, oc, &e_id, op->orr_modlist );
406 slap_graduate_commit_csn( op );
415 backsql_entry_clean( op, &r );
416 (void)backsql_free_entryID( &e_id, 0, op->o_tmpmemctx );
421 (time_t)(-1), NULL, dbh, op, rs,
460 rs->sr_err = entry_schema_check( op, &r, NULL, 0, 0, NULL,
473 if ( !access_allowed( op, e, slap_schema.si_ad_entry, NULL,
492 if ( rs->sr_err == LDAP_SUCCESS && !op->o_noop ) {
499 if ( op->o_noop && rs->sr_err == LDAP_SUCCESS ) {
503 send_ldap_result( op, rs );
504 slap_graduate_commit_csn( op );
511 slap_sl_free( new_dn.bv_val, op->o_tmpmemctx );
515 slap_sl_free( new_ndn.bv_val, op->o_tmpmemctx );
519 (void)backsql_free_entryID( &e_id, 0, op->o_tmpmemctx );
523 (void)backsql_free_entryID( &n_id, 0, op->o_tmpmemctx );
527 backsql_entry_clean( op, &r );
531 backsql_entry_clean( op, &p );
535 backsql_entry_clean( op, &n );