Lines Matching refs:op
52 vernum_op_add( Operation *op, SlapReply *rs )
54 slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
61 assert( op->ora_e != NULL );
63 if ( BER_BVISEMPTY( &op->ora_e->e_nname ) ) {
67 a = attr_find( op->ora_e->e_attrs, vn->vn_attr );
72 if ( attr_find( op->ora_e->e_attrs, vn->vn_vernum ) != NULL ) {
83 for ( ap = &op->ora_e->e_attrs; *ap != NULL; ap = &(*ap)->a_next )
92 vernum_op_modify( Operation *op, SlapReply *rs )
94 slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
102 for ( ml = op->orm_modlist; ml != NULL; ml = ml->sml_next ) {
118 for ( mlp = &op->orm_modlist; *mlp != NULL; mlp = &(*mlp)->sml_next )
198 vernum_repair_cb( Operation *op, SlapReply *rs )
201 vernum_repair_cb_t *rcb = op->o_callback->sc_private;
204 BackendDB *save_bd = op->o_bd;
221 mod = op->o_tmpalloc( len, op->o_tmpmemctx );
230 op->o_log_prefix, rs->sr_entry->e_name.bv_val, 0 );
243 Operation *op;
252 op = &opbuf.ob_op;
254 op->o_tag = LDAP_REQ_SEARCH;
255 memset( &op->oq_search, 0, sizeof( op->oq_search ) );
259 op->o_bd = select_backend( &be->be_nsuffix[ 0 ], 0 );
260 assert( op->o_bd != NULL );
261 assert( op->o_bd->be_nsuffix != NULL );
263 op->o_req_dn = op->o_bd->be_suffix[ 0 ];
264 op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ];
266 op->o_dn = op->o_bd->be_rootdn;
267 op->o_ndn = op->o_bd->be_rootndn;
269 op->ors_scope = LDAP_SCOPE_SUBTREE;
270 op->ors_tlimit = SLAP_NO_LIMIT;
271 op->ors_slimit = SLAP_NO_LIMIT;
272 op->ors_attrs = slap_anlist_no_attrs;
274 op->ors_filterstr.bv_len = STRLENOF( "(&(=*)(!(=*)))" )
277 op->ors_filterstr.bv_val = op->o_tmpalloc( op->ors_filterstr.bv_len + 1, op->o_tmpmemctx );
278 snprintf( op->ors_filterstr.bv_val, op->ors_filterstr.bv_len + 1,
283 op->ors_filter = str2filter_x( op, op->ors_filterstr.bv_val );
284 if ( op->ors_filter == NULL ) {
289 op->o_callback = ≻
296 (void)op->o_bd->bd_info->bi_op_search( op, &rs );
298 op->o_tag = LDAP_REQ_MODIFY;
301 memset( &op->oq_modify, 0, sizeof( req_modify_s ) );
319 op->o_req_dn = rmod->ndn;
320 op->o_req_ndn = rmod->ndn;
322 op->orm_modlist = &mod;
324 op->o_bd->be_modify( op, &rs2 );
326 slap_mods_free( op->orm_modlist->sml_next, 1 );
329 op->o_log_prefix, rmod->ndn.bv_val, 0 );
334 op->o_log_prefix, rmod->ndn.bv_val, rs2.sr_err );
338 op->o_tmpfree( rmod, op->o_tmpmemctx );
343 op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
344 filter_free_x( op, op->ors_filter, 1 );