• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/contrib/slapd-modules/samba4/

Lines Matching refs:op

46 pguid_op_add( Operation *op, SlapReply *rs )
48 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
56 if ( dn_match( &op->o_req_ndn, &op->o_bd->be_nsuffix[0] ) ) {
60 dnParent( &op->o_req_dn, &pdn );
61 dnParent( &op->o_req_ndn, &pndn );
63 rc = overlay_entry_get_ov( op, &pndn, NULL, slap_schema.si_ad_entryUUID, 0, &e, on );
66 op->o_log_prefix, pdn.bv_val, rc );
73 op->o_log_prefix, pdn.bv_val, rc );
78 if ( op->ora_e != NULL ) {
79 attr_merge_one( op->ora_e, ad_parentUUID, &a->a_vals[0], a->a_nvals == a->a_vals ? NULL : &a->a_nvals[0] );
85 assert( op->ora_modlist != NULL );
87 for ( ml = op->ora_modlist; ml != NULL; ml = ml->sml_next ) {
94 ml = op->ora_modlist;
115 (void)overlay_entry_release_ov( op, e, 0, on );
122 pguid_op_rename( Operation *op, SlapReply *rs )
124 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
130 if ( op->orr_nnewSup == NULL ) {
134 rc = overlay_entry_get_ov( op, op->orr_nnewSup, NULL, slap_schema.si_ad_entryUUID, 0, &e, on );
137 op->o_log_prefix, op->orr_newSup->bv_val, rc );
144 op->o_log_prefix, op->orr_newSup->bv_val, rc );
163 mod->sml_next = op->orr_modlist;
164 op->orr_modlist = mod;
168 (void)overlay_entry_release_ov( op, e, 0, on );
212 pguid_repair_cb( Operation *op, SlapReply *rs )
215 pguid_repair_cb_t *pcb = op->o_callback->sc_private;
237 rc = overlay_entry_get_ov( op, &pndn, NULL, slap_schema.si_ad_entryUUID, 0, &e, pcb->on );
240 op->o_log_prefix, pdn.bv_val, rc );
247 op->o_log_prefix, pdn.bv_val, rc );
256 mod = op->o_tmpalloc( len, op->o_tmpmemctx );
268 op->o_log_prefix, rs->sr_entry->e_name.bv_val, 0 );
272 (void)overlay_entry_release_ov( op, e, 0, pcb->on );
285 Operation *op;
293 op = &opbuf.ob_op;
295 op->o_tag = LDAP_REQ_SEARCH;
296 memset( &op->oq_search, 0, sizeof( op->oq_search ) );
298 op->o_bd = select_backend( &be->be_nsuffix[ 0 ], 0 );
300 op->o_req_dn = op->o_bd->be_suffix[ 0 ];
301 op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ];
303 op->o_dn = op->o_bd->be_rootdn;
304 op->o_ndn = op->o_bd->be_rootndn;
306 op->ors_scope = LDAP_SCOPE_SUBORDINATE;
307 op->ors_tlimit = SLAP_NO_LIMIT;
308 op->ors_slimit = SLAP_NO_LIMIT;
309 op->ors_attrs = slap_anlist_no_attrs;
311 op->ors_filterstr.bv_len = STRLENOF( "(!(=*))" ) + ad_parentUUID->ad_cname.bv_len;
312 op->ors_filterstr.bv_val = op->o_tmpalloc( op->ors_filterstr.bv_len + 1, op->o_tmpmemctx );
313 snprintf( op->ors_filterstr.bv_val, op->ors_filterstr.bv_len + 1,
316 op->ors_filter = str2filter_x( op, op->ors_filterstr.bv_val );
317 if ( op->ors_filter == NULL ) {
322 op->o_callback = ≻
327 (void)op->o_bd->bd_info->bi_op_search( op, &rs );
329 op->o_tag = LDAP_REQ_MODIFY;
332 memset( &op->oq_modify, 0, sizeof( req_modify_s ) );
353 op->o_req_dn = pmod->ndn;
354 op->o_req_ndn = pmod->ndn;
356 op->orm_modlist = mod;
357 op->o_bd->be_modify( op, &rs2 );
358 slap_mods_free( op->orm_modlist, 1 );
361 op->o_log_prefix, pmod->ndn.bv_val, 0 );
366 op->o_log_prefix, pmod->ndn.bv_val, rs2.sr_err );
370 op->o_tmpfree( pmod, op->o_tmpmemctx );
375 op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
376 filter_free_x( op, op->ors_filter, 1 );