Lines Matching refs:op
42 Operation *op,
46 if ( op->o_noopsrch != SLAP_CONTROL_NONE ) {
47 rs->sr_text = "No-op Search control specified multiple times";
52 rs->sr_text = "No-op Search control value is present";
56 op->o_ctrlnoopsrch = (void *)NULL;
58 op->o_noopsrch = ctrl->ldctl_iscritical
79 noopsrch_response( Operation *op, SlapReply *rs )
81 noopsrch_cb_t *nc = (noopsrch_cb_t *)op->o_callback->sc_private;
85 nc->nc_save_slimit = op->ors_slimit;
86 op->ors_slimit = SLAP_NO_LIMIT;
121 if ( op->o_noopsrch == SLAP_CONTROL_CRITICAL ) {
127 ctrl = op->o_tmpcalloc( 1,
129 op->o_tmpmemctx );
141 slap_add_ctrls( op, rs, ctrlsp );
148 noopsrch_cleanup( Operation *op, SlapReply *rs )
151 noopsrch_cb_t *nc = (noopsrch_cb_t *)op->o_callback->sc_private;
152 op->ors_attrs = nc->nc_save_attrs;
154 op->ors_slimit = nc->nc_save_slimit;
157 op->o_tmpfree( op->o_callback, op->o_tmpmemctx );
158 op->o_callback = NULL;
165 noopsrch_op_search( Operation *op, SlapReply *rs )
167 if ( op->o_noopsrch != SLAP_CONTROL_NONE ) {
171 sc = op->o_tmpcalloc( 1, sizeof( slap_callback ) + sizeof( noopsrch_cb_t ), op->o_tmpmemctx );
174 nc->nc_on = (slap_overinst *)op->o_bd->bd_info;
177 nc->nc_save_attrs = op->ors_attrs;
184 op->ors_attrs = slap_anlist_no_attrs;
186 sc->sc_next = op->o_callback->sc_next;
187 op->o_callback->sc_next = sc;