Lines Matching refs:op
106 ca.op = SLAP_CONFIG_ADD;
225 over_back_response ( Operation *op, SlapReply *rs )
227 slap_overinfo *oi = op->o_callback->sc_private;
230 BackendDB *be = op->o_bd, db = *op->o_bd;
233 op->o_bd = &db;
237 rc = on->on_response( op, rs );
246 op->o_bd = be;
252 Operation *op,
263 BackendDB *be = op->o_bd, db;
268 assert( op->o_bd != NULL );
270 bi = op->o_bd->bd_info;
275 oi = op->o_bd->bd_info->bi_private;
282 if ( !SLAP_ISOVERLAY( op->o_bd ) ) {
283 db = *op->o_bd;
285 op->o_bd = &db;
288 op->o_bd->bd_info = (BackendInfo *)on;
289 rc = on->on_bi.bi_access_allowed( op, e,
300 if ( SLAP_ISOVERLAY( op->o_bd ) ) {
301 op->o_bd->bd_info = oi->oi_orig;
310 rc = bi_access_allowed( op, e,
319 op->o_bd = be;
320 op->o_bd->bd_info = bi;
327 Operation *op,
336 BackendDB *be = op->o_bd, db;
337 BackendInfo *bi = op->o_bd->bd_info;
343 if ( !SLAP_ISOVERLAY( op->o_bd ) ) {
344 db = *op->o_bd;
346 op->o_bd = &db;
349 op->o_bd->bd_info = (BackendInfo *)on;
350 rc = on->on_bi.bi_entry_get_rw( op, dn,
359 if ( SLAP_ISOVERLAY( op->o_bd ) ) {
360 op->o_bd->bd_info = oi->oi_orig;
364 rc = oi->oi_orig->bi_entry_get_rw( op, dn,
373 op->o_bd = be;
374 op->o_bd->bd_info = bi;
381 Operation *op,
391 assert( op->o_bd != NULL );
393 oi = op->o_bd->bd_info->bi_private;
396 return overlay_entry_get_ov( op, dn, oc, ad, rw, e, on );
401 Operation *op,
407 BackendDB *be = op->o_bd, db;
408 BackendInfo *bi = op->o_bd->bd_info;
414 if ( !SLAP_ISOVERLAY( op->o_bd ) ) {
415 db = *op->o_bd;
417 op->o_bd = &db;
420 op->o_bd->bd_info = (BackendInfo *)on;
421 rc = on->on_bi.bi_entry_release_rw( op, e, rw );
429 if ( SLAP_ISOVERLAY( op->o_bd ) ) {
430 op->o_bd->bd_info = oi->oi_orig;
434 rc = oi->oi_orig->bi_entry_release_rw( op, e, rw );
443 op->o_bd = be;
444 op->o_bd->bd_info = bi;
451 Operation *op,
458 assert( op->o_bd != NULL );
460 oi = op->o_bd->bd_info->bi_private;
463 return overlay_entry_release_ov( op, e, rw, on );
468 Operation *op,
478 BackendDB *be = op->o_bd, db;
492 if ( !SLAP_ISOVERLAY( op->o_bd ) ) {
493 db = *op->o_bd;
495 op->o_bd = &db;
498 op->o_bd->bd_info = (BackendInfo *)on;
499 rc = on->on_bi.bi_acl_group( op, e,
510 if ( SLAP_ISOVERLAY( op->o_bd ) ) {
511 op->o_bd->bd_info = oi->oi_orig;
520 rc = bi_acl_group( op, e,
529 op->o_bd = be;
530 op->o_bd->bd_info = bi;
537 Operation *op,
547 BackendDB *be = op->o_bd, db;
561 if ( !SLAP_ISOVERLAY( op->o_bd ) ) {
562 db = *op->o_bd;
564 op->o_bd = &db;
567 op->o_bd->bd_info = (BackendInfo *)on;
568 rc = on->on_bi.bi_acl_attribute( op, target,
579 if ( SLAP_ISOVERLAY( op->o_bd ) ) {
580 op->o_bd->bd_info = oi->oi_orig;
589 rc = bi_acl_attribute( op, target,
598 op->o_bd = be;
599 op->o_bd->bd_info = bi;
605 overlay_callback_after_backover( Operation *op, slap_callback *sc, int append )
609 for ( scp = &op->o_callback; *scp != NULL; scp = &(*scp)->sc_next ) {
647 Operation *op,
660 op->o_bd->bd_info = (BackendInfo *)on;
661 rc = func[which]( op, rs );
670 op->o_bd->bd_info = oi->oi_orig;
671 rc = func[which]( op, rs );
683 for ( ; op->o_callback && op->o_callback->sc_response !=
684 over_back_response; op->o_callback = sc_next ) {
685 sc_next = op->o_callback->sc_next;
686 if ( op->o_callback->sc_cleanup ) {
687 op->o_callback->sc_cleanup( op, rs );
696 Operation *op,
703 BackendDB *be = op->o_bd, db;
709 assert( op->o_bd != NULL );
711 oi = op->o_bd->bd_info->bi_private;
714 if ( !SLAP_ISOVERLAY( op->o_bd )) {
715 db = *op->o_bd;
717 op->o_bd = &db;
719 cb.sc_next = op->o_callback;
721 op->o_callback = &cb;
723 rc = overlay_op_walk( op, rs, which, oi, on );
724 for ( sc = &op->o_callback; *sc; sc = &(*sc)->sc_next ) {
731 op->o_bd = be;
736 over_op_bind( Operation *op, SlapReply *rs )
738 return over_op_func( op, rs, op_bind );
742 over_op_unbind( Operation *op, SlapReply *rs )
744 return over_op_func( op, rs, op_unbind );
748 over_op_search( Operation *op, SlapReply *rs )
750 return over_op_func( op, rs, op_search );
754 over_op_compare( Operation *op, SlapReply *rs )
756 return over_op_func( op, rs, op_compare );
760 over_op_modify( Operation *op, SlapReply *rs )
762 return over_op_func( op, rs, op_modify );
766 over_op_modrdn( Operation *op, SlapReply *rs )
768 return over_op_func( op, rs, op_modrdn );
772 over_op_add( Operation *op, SlapReply *rs )
774 return over_op_func( op, rs, op_add );
778 over_op_delete( Operation *op, SlapReply *rs )
780 return over_op_func( op, rs, op_delete );
784 over_op_abandon( Operation *op, SlapReply *rs )
786 return over_op_func( op, rs, op_abandon );
790 over_op_cancel( Operation *op, SlapReply *rs )
792 return over_op_func( op, rs, op_cancel );
796 over_op_extended( Operation *op, SlapReply *rs )
798 return over_op_func( op, rs, op_extended );
802 over_aux_operational( Operation *op, SlapReply *rs )
804 return over_op_func( op, rs, op_aux_operational );
808 over_aux_chk_referrals( Operation *op, SlapReply *rs )
810 return over_op_func( op, rs, op_aux_chk_referrals );
814 over_aux_chk_controls( Operation *op, SlapReply *rs )
816 return over_op_func( op, rs, op_aux_chk_controls );
1159 overlay_remove_cb( Operation *op, SlapReply *rs )
1161 ov_remove_ctx *rm_ctx = (ov_remove_ctx*) op->o_callback->sc_private;
1183 op->o_tmpfree(rm_ctx, op->o_tmpmemctx);
1188 overlay_remove( BackendDB *be, slap_overinst *on, Operation *op )
1206 rm_ctx = op->o_tmpalloc( sizeof( ov_remove_ctx ), op->o_tmpmemctx );
1210 rm_cb = op->o_tmpalloc( sizeof( slap_callback ), op->o_tmpmemctx );
1217 for ( cb = op->o_callback; cb->sc_next; cb = cb->sc_next );