Lines Matching refs:op
104 retcode_entry_response( Operation *op, SlapReply *rs, BackendInfo *bi, Entry *e );
128 retcode_cleanup_cb( Operation *op, SlapReply *rs )
138 ch_free( op->o_callback );
139 op->o_callback = NULL;
145 retcode_send_onelevel( Operation *op, SlapReply *rs )
147 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
153 if ( op->o_abandon ) {
157 rs->sr_err = test_filter( op, &rdi->rdi_e, op->ors_filter );
160 rs->sr_attrs = op->ors_attrs;
167 rs->sr_err = send_search_entry( op, rs );
185 send_ldap_result( op, rs );
191 retcode_op_add( Operation *op, SlapReply *rs )
193 return retcode_entry_response( op, rs, NULL, op->ora_e );
204 retcode_cb_response( Operation *op, SlapReply *rs )
206 retcode_cb_t *rdc = (retcode_cb_t *)op->o_callback->sc_private;
208 op->o_tag = rdc->rdc_tag;
210 ber_tag_t o_tag = op->o_tag;
213 if ( op->o_tag == LDAP_REQ_SEARCH ) {
216 rc = retcode_entry_response( op, rs, rdc->rdc_info, rs->sr_entry );
217 op->o_tag = o_tag;
227 if ( !op->o_abandon ) {
237 retcode_op_internal( Operation *op, SlapReply *rs )
239 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
241 Operation op2 = *op;
242 BackendDB db = *op->o_bd;
270 if ( op->o_tag == LDAP_REQ_SEARCH ) {
271 rdc.rdc_attrs = op->ors_attrs;
273 rdc.rdc_tag = op->o_tag;
279 op->o_abandon = op2.o_abandon;
292 retcode_op_func( Operation *op, SlapReply *rs )
294 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
305 if ( !dnIsSuffix( &op->o_req_ndn, &rd->rd_npdn ) ) {
307 switch ( op->o_tag ) {
309 return retcode_op_add( op, rs );
314 if ( be_isroot_pw( op ) ) {
317 return retcode_op_internal( op, rs );
320 if ( op->ors_scope == LDAP_SCOPE_BASE ) {
321 rs->sr_err = retcode_op_internal( op, rs );
331 send_ldap_result( op, rs );
342 return retcode_op_internal( op, rs );
349 if ( op->o_tag == LDAP_REQ_SEARCH
350 && op->ors_scope != LDAP_SCOPE_BASE
351 && op->o_req_ndn.bv_len == rd->rd_npdn.bv_len )
353 return retcode_send_onelevel( op, rs );
356 dnParent( &op->o_req_ndn, &npdn );
360 send_ldap_result( op, rs );
365 dnRdn( &op->o_req_ndn, &nrdn );
379 switch ( op->o_tag ) {
449 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
460 switch ( op->o_tag ) {
468 op->o_callback = cb;
473 ber_int_t msgid = op->o_msgid;
477 op->o_msgid = 0;
479 send_ldap_result( op, rs );
482 ber_tag_t tag = op->o_tag;
484 op->o_tag = LDAP_REQ_EXTENDED;
489 send_ldap_extended( op, rs );
492 op->o_tag = tag;
495 op->o_msgid = msgid;
498 send_ldap_result( op, rs );
518 retcode_op2str( ber_tag_t op, struct berval *bv )
520 switch ( op ) {
550 retcode_entry_response( Operation *op, SlapReply *rs, BackendInfo *bi, Entry *e )
557 if ( get_manageDSAit( op ) ) {
572 (void)retcode_op2str( op->o_tag, &bv );
621 BackendDB db = *op->o_bd,
622 *o_bd = op->o_bd;
623 void *o_callback = op->o_callback;
638 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
644 op->o_bd = &db;
645 op->o_callback = NULL;
656 NULL, &op->o_req_dn, op->oq_search.rs_scope );
658 send_search_reference( op, rs );
667 ber_int_t msgid = op->o_msgid;
671 op->o_msgid = 0;
681 send_ldap_result( op, rs );
684 ber_tag_t tag = op->o_tag;
686 op->o_tag = LDAP_REQ_EXTENDED;
691 send_ldap_extended( op, rs );
694 op->o_tag = tag;
696 op->o_msgid = msgid;
699 send_ldap_result( op, rs );
705 op->o_bd = o_bd;
706 op->o_callback = o_callback;
714 op->o_abandon = 1;
722 retcode_response( Operation *op, SlapReply *rs )
724 slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
731 return retcode_entry_response( op, rs, NULL, rs->sr_entry );
842 if ( c->op == SLAP_CONFIG_EMIT ) {
883 } else if ( c->op == LDAP_MOD_DELETE ) {
1012 if ( strncasecmp( c->argv[ i ], "op=", STRLENOF( "op=" ) ) == 0 )
1017 ops = ldap_str2charray( &c->argv[ i ][ STRLENOF( "op=" ) ], "," );
1063 "unknown op \"%s\"",