Lines Matching refs:op
237 Operation *op )
239 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
267 Operation *op,
275 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
310 op->o_log_prefix, buf, 0 );
322 if ( op->o_conn && ( sendok & LDAP_BACK_SENDERR ) ) {
324 send_ldap_result( op, rs );
380 && op->o_conn
383 send_ldap_result( op, rs );
411 } else if ( op->o_conn->c_protocol != 0 ) {
412 version = op->o_conn->c_protocol;
444 || ( op->o_conn->c_is_tls && META_BACK_TGT_PROPAGATE_TLS( mt ) ) )
487 if ( mi->mi_idle_timeout != 0 && msc->msc_time < op->o_time ) {
488 msc->msc_time = op->o_time;
559 op->o_log_prefix, candidate,
564 meta_clear_one_candidate( op, mc, candidate );
613 if ( !BER_BVISEMPTY( &op->o_ndn )
614 && SLAP_IS_AUTHZ_BACKEND( op )
618 dc.conn = op->o_conn;
625 if ( ldap_back_dn_massage( &dc, &op->o_conn->c_dn,
633 op->o_log_prefix, candidate,
638 meta_clear_one_candidate( op, mc, candidate );
643 if ( msc->msc_bound_ndn.bv_val == op->o_conn->c_dn.bv_val ) {
644 ber_dupbv( &msc->msc_bound_ndn, &op->o_conn->c_dn );
665 ( void )rewrite_session_init( mt->mt_rwmap.rwm_rw, op->o_conn );
675 send_ldap_result( op, rs );
689 Operation *op,
695 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
728 op->o_log_prefix, candidate, buf );
736 meta_clear_one_candidate( op, mc, candidate );
739 ( void )rewrite_session_delete( mt->mt_rwmap.rwm_rw, op->o_conn );
742 rc = meta_back_init_one_conn( op, rs, mc, candidate,
765 rc = meta_back_single_dobind( op, rs, mcp, candidate,
771 op->o_log_prefix, candidate, rc );
794 SlapReply *candidates = meta_back_candidates_get( op );
803 (void)meta_clear_one_candidate( op, mc, candidate );
849 send_ldap_result( op, rs );
854 meta_back_quarantine( op, rs, candidate );
866 meta_back_conn_cb( Operation *op, SlapReply *rs )
868 assert( op->o_tag == LDAP_REQ_SEARCH );
872 ((long *)op->o_callback->sc_private)[0] = (long)op->o_private;
889 Operation *op,
893 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
910 Operation op2 = *op;
935 rc = op->o_bd->be_search( &op2, &rs2 );
949 ndn, op->o_tag == LDAP_REQ_SEARCH ? op->ors_scope : LDAP_SCOPE_BASE ) )
983 meta_back_candidates_get( Operation *op )
985 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
988 if ( op->o_threadctx ) {
991 ldap_pvt_thread_pool_getkey( op->o_threadctx,
1003 if ( op->o_threadctx ) {
1007 ldap_pvt_thread_pool_setkey( op->o_threadctx,
1038 * op requires candidate checks
1064 Operation *op,
1069 metainfo_t *mi = ( metainfo_t * )op->o_bd->be_private;
1085 struct berval ndn = op->o_req_ndn,
1088 SlapReply *candidates = meta_back_candidates_get( op );
1091 if ( ( !BER_BVISEMPTY( &op->o_ndn ) && META_BACK_PROXYAUTHZ_ALWAYS( mi ) )
1092 || ( BER_BVISEMPTY( &op->o_ndn ) && META_BACK_PROXYAUTHZ_ANON( mi ) )
1093 || op->o_do_not_cache || be_isroot( op ) )
1096 mc_curr.mc_local_ndn = op->o_bd->be_rootndn;
1097 LDAP_BACK_PCONN_ROOTDN_SET( &mc_curr, op );
1099 } else if ( BER_BVISEMPTY( &op->o_ndn ) && META_BACK_PROXYAUTHZ_NOANON( mi ) )
1103 LDAP_BACK_PCONN_ANON_SET( &mc_curr, op );
1106 mc_curr.mc_local_ndn = op->o_ndn;
1109 if ( !BER_BVISEMPTY( &op->o_ndn )
1110 || op->o_tag == LDAP_REQ_BIND
1111 || SLAP_IS_AUTHZ_BACKEND( op ) )
1113 mc_curr.mc_conn = op->o_conn;
1117 LDAP_BACK_PCONN_ANON_SET( &mc_curr, op );
1123 mc_curr.mc_conn = op->o_conn;
1182 if ( ( mi->mi_conn_ttl != 0 && op->o_time > mc->mc_create_time + mi->mi_conn_ttl )
1183 || ( mi->mi_idle_timeout != 0 && op->o_time > mc->mc_time + mi->mi_idle_timeout ) )
1222 op->o_log_prefix, (void *)mc, buf );
1232 switch ( op->o_tag ) {
1243 if ( op->orr_nnewSup ) {
1252 if ( op->orb_method == LDAP_AUTH_SIMPLE && be_isroot_pw( op ) ) {
1281 mc = metaconn_alloc( op );
1305 candidates[ i ].sr_err = meta_back_init_one_conn( op,
1342 rs->sr_matched = op->o_bd->be_suffix[ 0 ].bv_val;
1344 send_ldap_result( op, rs );
1358 cached = i = meta_dncache_get_target( &mi->mi_cache, &op->o_req_ndn );
1376 i = meta_back_get_candidate( op, rs, &ndn );
1379 i = meta_back_get_candidate( op, rs, &pndn );
1389 rs->sr_matched = op->o_bd->be_suffix[ 0 ].bv_val;
1391 send_ldap_result( op, rs );
1399 if ( dn_type == META_DNTYPE_NEWPARENT && meta_back_get_candidate( op, rs, op->orr_nnewSup ) != i )
1408 send_ldap_result( op, rs );
1416 i, op->o_req_ndn.bv_val, 0 );
1453 mc = metaconn_alloc( op );
1472 ( void )meta_clear_unused_candidates( op, i );
1482 err = meta_back_init_one_conn( op, rs, mc, i,
1521 mc = metaconn_alloc( op );
1539 || meta_back_is_candidate( mt, &op->o_req_ndn,
1540 op->o_tag == LDAP_REQ_SEARCH ? op->ors_scope : LDAP_SCOPE_SUBTREE ) )
1547 int lerr = meta_back_init_one_conn( op, rs, mc, i,
1556 op->o_log_prefix, i, 0 );
1562 op->o_log_prefix, i,
1573 ( void )meta_clear_one_candidate( op, mc, i );
1580 op->o_log_prefix, i, lerr );
1584 op->o_log_prefix, i, lerr );
1589 send_ldap_result( op, rs );
1607 ( void )meta_clear_one_candidate( op, mc, i );
1628 rs->sr_matched = op->o_bd->be_suffix[ 0 ].bv_val;
1630 send_ldap_result( op, rs );
1645 mc->mc_time = op->o_time;
1650 mc->mc_create_time = op->o_time;
1714 op->o_log_prefix, ncandidates, buf );
1723 send_ldap_result( op, rs );
1735 op->o_log_prefix, ncandidates, buf );
1745 op->o_log_prefix, ncandidates, buf );
1821 Operation *op,
1825 metainfo_t *mi = (metainfo_t *)op->o_bd->be_private;
1843 op->o_log_prefix, candidate, 0 );
1857 op->o_log_prefix, buf, 0 );
1879 op->o_log_prefix, candidate, 0 );