Lines Matching refs:op
35 meta_back_modrdn( Operation *op, SlapReply *rs )
37 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
49 mc = meta_back_getconn( op, rs, &candidate, LDAP_BACK_SENDERR );
50 if ( !mc || !meta_back_dobind( op, rs, mc, LDAP_BACK_SENDERR ) ) {
58 dc.conn = op->o_conn;
61 if ( op->orr_newSup ) {
88 if ( op->o_protocol == 0 || op->o_protocol == LDAP_VERSION3 ) {
94 /* op->o_protocol cannot be anything but LDAPv3,
97 send_ldap_result( op, rs );
105 if ( ldap_back_dn_massage( &dc, op->orr_newSup, &mnewSuperior ) ) {
107 send_ldap_result( op, rs );
116 if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mdn ) ) {
118 send_ldap_result( op, rs );
124 newrdn = op->orr_newrdn;
126 ber_dupbv_x( &newrdn, &op->orr_newrdn, op->o_tmpmemctx );
130 ctrls = op->o_ctrls;
131 if ( meta_back_controls_add( op, rs, mc, candidate, &ctrls ) != LDAP_SUCCESS )
133 send_ldap_result( op, rs );
139 mnewSuperior.bv_val, op->orr_deleteoldrdn,
141 rs->sr_err = meta_back_op_result( mc, op, rs, candidate, msgid,
145 if ( meta_back_retry( op, rs, &mc, candidate, LDAP_BACK_SENDERR ) ) {
147 (void)mi->mi_ldap_extra->controls_free( op, rs, &ctrls );
153 (void)mi->mi_ldap_extra->controls_free( op, rs, &ctrls );
155 if ( mdn.bv_val != op->o_req_dn.bv_val ) {
161 && mnewSuperior.bv_val != op->orr_newSup->bv_val )
167 if ( newrdn.bv_val != op->orr_newrdn.bv_val ) {
168 op->o_tmpfree( newrdn.bv_val, op->o_tmpmemctx );