Lines Matching refs:op
40 Operation *op,
51 op->o_log_prefix, 0, 0 );
71 if ( ber_scanf( op->o_ber, "{m" /*}*/, &dn ) == LBER_ERROR ) {
73 op->o_log_prefix, 0, 0 );
74 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
79 op->o_log_prefix, dn.bv_val, 0 );
81 rs->sr_err = slap_parse_modlist( op, rs, op->o_ber, &op->oq_modify );
84 op->o_log_prefix, rs->sr_err, rs->sr_text );
85 send_ldap_result( op, rs );
89 if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
91 op->o_log_prefix, 0, 0 );
96 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn,
97 op->o_tmpmemctx );
100 op->o_log_prefix, dn.bv_val, 0 );
101 send_ldap_error( op, rs, LDAP_INVALID_DN_SYNTAX, "invalid DN" );
105 op->orm_no_opattrs = 0;
109 op->o_log_prefix, 0, 0 );
111 for ( tmp = op->orm_modlist; tmp != NULL; tmp = tmp->sml_next ) {
138 op->o_log_prefix, op->o_req_dn.bv_val, 0, 0, 0 );
140 for ( tmp = op->orm_modlist; tmp != NULL; tmp = tmp->sml_next ) {
143 op->o_log_prefix, abuf, 0, 0, 0 );
150 op->o_log_prefix, tmp->sml_type.bv_val, 0, 0, 0 );
163 op->o_log_prefix, abuf, 0, 0, 0 );
168 rs->sr_err = slap_mods_check( op, op->orm_modlist,
172 send_ldap_result( op, rs );
176 op->o_bd = frontendDB;
177 rs->sr_err = frontendDB->be_modify( op, rs );
187 op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
188 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
189 if ( op->orm_modlist != NULL ) slap_mods_free( op->orm_modlist, 1 );
195 fe_op_modify( Operation *op, SlapReply *rs )
197 BackendDB *op_be, *bd = op->o_bd;
201 if ( BER_BVISEMPTY( &op->o_req_ndn ) ) {
203 op->o_log_prefix, 0, 0 );
204 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
208 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) {
210 op->o_log_prefix, 0, 0 );
211 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
221 op->o_bd = select_backend( &op->o_req_ndn, 1 );
222 if ( op->o_bd == NULL ) {
223 op->o_bd = bd;
225 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
232 send_ldap_result( op, rs );
239 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
246 op_be = op->o_bd;
247 if ( SLAP_GLUE_INSTANCE( op->o_bd )) {
248 op->o_bd = select_backend( &op->o_req_ndn, 0 );
252 if ( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
253 send_ldap_result( op, rs );
258 if ( backend_check_referrals( op, rs ) != LDAP_SUCCESS ) {
262 rs->sr_err = slap_mods_obsolete_check( op, op->orm_modlist,
265 send_ldap_result( op, rs );
270 if ( op->orm_increment && !SLAP_INCREMENT( op->o_bd ) ) {
271 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
282 if ( op->o_bd->be_modify ) {
284 int repl_user = be_isupdate( op );
290 if ( !SLAP_SINGLE_SHADOW(op->o_bd) || repl_user ) {
291 int update = !BER_BVISEMPTY( &op->o_bd->be_update_ndn );
293 op->o_bd = op_be;
296 rs->sr_err = slap_mods_no_user_mod_check( op, op->orm_modlist,
299 send_ldap_result( op, rs );
303 op->o_bd->be_modify( op, rs );
306 BerVarray defref = op->o_bd->be_update_refs
307 ? op->o_bd->be_update_refs : default_referral;
310 NULL, &op->o_req_dn,
318 send_ldap_result( op, rs );
324 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
330 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
335 op->o_bd = bd;
344 Operation *op,
350 if( get_relax( op ) ) return LDAP_SUCCESS;
378 Operation *op,
393 if ( get_relax( op ) ) {
420 Operation *op,
451 Operation *op,
467 if ( get_no_schema_check( op )) {
861 /* Called for all modify and modrdn ops. If the current op was replicated
865 Operation *op,
876 if ( SLAP_LASTMOD( op->o_bd ) && !op->orm_no_opattrs ) {
903 if ( BER_BVISEMPTY( &op->o_csn )) {
907 slap_get_csn( op, &csn, manage_ctxcsn );
911 slap_queue_csn( op, &csn );
916 csn = op->o_csn;
934 if ( BER_BVISEMPTY( &op->o_dn ) ) {
939 name = op->o_dn;
940 nname = op->o_ndn;
1003 Operation *op,
1061 if( op->o_protocol >= LDAP_VERSION3 ) {