• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-meta/

Lines Matching defs:mt

276 	metatarget_t		*mt = mi->mi_targets[ candidate ];
291 if ( mt->mt_isquarantined ) {
292 slap_retry_info_t *ri = &mt->mt_quarantine;
295 if ( mt->mt_quarantine.ri_interval ) {
296 ldap_pvt_thread_mutex_lock( &mt->mt_quarantine_mutex );
297 dont_retry = ( mt->mt_isquarantined > LDAP_BACK_FQ_NO );
313 mt->mt_isquarantined = LDAP_BACK_FQ_RETRYING;
317 ldap_pvt_thread_mutex_unlock( &mt->mt_quarantine_mutex );
394 ldap_pvt_thread_mutex_lock( &mt->mt_uri_mutex );
395 rs->sr_err = ldap_initialize( &msc->msc_ld, mt->mt_uri );
397 is_ldaps = ldap_is_ldaps_url( mt->mt_uri );
399 ldap_pvt_thread_mutex_unlock( &mt->mt_uri_mutex );
408 if ( mt->mt_version != 0 ) {
409 version = mt->mt_version;
418 ldap_set_urllist_proc( msc->msc_ld, mt->mt_urllist_f, mt->mt_urllist_p );
422 META_BACK_TGT_CHASE_REFERRALS( mt ) ? LDAP_OPT_ON : LDAP_OPT_OFF );
429 sb = &mt->mt_idassert.si_bc;
431 sb = &mt->mt_tls;
440 if ( sb == &mt->mt_idassert.si_bc && sb->sb_tls_ctx ) {
443 } else if ( META_BACK_TGT_USE_TLS( mt )
444 || ( op->o_conn->c_is_tls && META_BACK_TGT_PROPAGATE_TLS( mt ) ) )
462 int rc, nretries = mt->mt_nretries;
552 && META_BACK_TGT_TLS_CRITICAL( mt ) ) )
573 if ( mt->mt_network_timeout != 0 ) {
577 network_timeout.tv_sec = mt->mt_network_timeout;
588 if ( !BER_BVISNULL( &mt->mt_idassert_authcDN ) ) {
589 ber_bvreplace( &msc->msc_bound_ndn, &mt->mt_idassert_authcDN );
590 if ( !BER_BVISNULL( &mt->mt_idassert_passwd ) ) {
595 ber_bvreplace( &msc->msc_cred, &mt->mt_idassert_passwd );
617 dc.target = mt;
665 ( void )rewrite_session_init( mt->mt_rwmap.rwm_rw, op->o_conn );
696 metatarget_t *mt = mi->mi_targets[ candidate ];
718 ldap_pvt_thread_mutex_lock( &mt->mt_uri_mutex );
721 mt->mt_uri,
724 ldap_pvt_thread_mutex_unlock( &mt->mt_uri_mutex );
739 ( void )rewrite_session_delete( mt->mt_rwmap.rwm_rw, op->o_conn );
766 sendok, mt->mt_nretries, 0 );
853 if ( quarantine && META_BACK_TGT_QUARANTINE( mt ) ) {
1362 metatarget_t *mt = NULL;
1474 mt = mi->mi_targets[ i ];
1534 metatarget_t *mt = mi->mi_targets[ i ];
1539 || meta_back_is_candidate( mt, &op->o_req_ndn,
1563 mt->mt_isquarantined != LDAP_BACK_FQ_NO ? "quarantined" : "unavailable" );
1578 if ( lerr == LDAP_UNAVAILABLE && mt->mt_isquarantined != LDAP_BACK_FQ_NO ) {
1826 metatarget_t *mt = mi->mi_targets[ candidate ];
1828 slap_retry_info_t *ri = &mt->mt_quarantine;
1830 ldap_pvt_thread_mutex_lock( &mt->mt_quarantine_mutex );
1835 switch ( mt->mt_isquarantined ) {
1873 mt->mt_isquarantined = LDAP_BACK_FQ_YES;
1876 } else if ( mt->mt_isquarantined == LDAP_BACK_FQ_RETRYING ) {
1888 mt->mt_isquarantined = LDAP_BACK_FQ_NO;
1892 ldap_pvt_thread_mutex_unlock( &mt->mt_quarantine_mutex );