Lines Matching defs:msc

279 	metasingleconn_t	*msc = &mc->mc_conns[ candidate ];
339 if ( LDAP_BACK_CONN_ISBOUND( msc )
340 || LDAP_BACK_CONN_ISANON( msc ) )
342 assert( msc->msc_ld != NULL );
346 } else if ( META_BACK_CONN_CREATING( msc )
347 || LDAP_BACK_CONN_BINDING( msc ) )
363 } else if ( META_BACK_CONN_INITED( msc ) ) {
364 assert( msc->msc_ld != NULL );
372 META_BACK_CONN_CREATING_SET( msc );
390 assert( msc->msc_ld == NULL );
396 rs->sr_err = ldap_initialize( &msc->msc_ld, mt->mt_uri );
418 ldap_set_option( msc->msc_ld, LDAP_OPT_PROTOCOL_VERSION, &version );
419 ldap_set_urllist_proc( msc->msc_ld, mt->mt_urllist_f, mt->mt_urllist_p );
422 ldap_set_option( msc->msc_ld, LDAP_OPT_REFERRALS,
439 rs->sr_err = ldap_start_tls( msc->msc_ld, NULL, NULL, &msgid );
448 rc = ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res );
467 if ( mi->mi_idle_timeout != 0 && msc->msc_time < op->o_time ) {
468 msc->msc_time = op->o_time;
477 rs->sr_err = ldap_parse_extended_result( msc->msc_ld,
483 rs->sr_err = ldap_parse_result( msc->msc_ld,
496 ldap_install_tls( msc->msc_ld );
522 rs->sr_err = ldap_start_tls_s( msc->msc_ld, NULL, NULL );
539 (void *)msc->msc_ld );
558 ldap_set_option( msc->msc_ld, LDAP_OPT_NETWORK_TIMEOUT,
568 ber_bvreplace( &msc->msc_bound_ndn, &mt->mt_idassert_authcDN );
570 if ( !BER_BVISNULL( &msc->msc_cred ) ) {
571 memset( msc->msc_cred.bv_val, 0,
572 msc->msc_cred.bv_len );
574 ber_bvreplace( &msc->msc_cred, &mt->mt_idassert_passwd );
578 ber_bvreplace( &msc->msc_bound_ndn, &slap_empty_bv );
582 if ( !BER_BVISNULL( &msc->msc_cred ) ) {
583 memset( msc->msc_cred.bv_val, 0, msc->msc_cred.bv_len );
584 ber_memfree_x( msc->msc_cred.bv_val, NULL );
585 BER_BVZERO( &msc->msc_cred );
587 if ( !BER_BVISNULL( &msc->msc_bound_ndn ) ) {
588 ber_memfree_x( msc->msc_bound_ndn.bv_val, NULL );
589 BER_BVZERO( &msc->msc_bound_ndn );
604 &msc->msc_bound_ndn ) )
612 (void *)msc->msc_ld );
621 if ( msc->msc_bound_ndn.bv_val == op->o_conn->c_dn.bv_val ) {
622 ber_dupbv( &msc->msc_bound_ndn, &op->o_conn->c_dn );
625 assert( !BER_BVISNULL( &msc->msc_bound_ndn ) );
628 ber_dupbv( &msc->msc_bound_ndn, (struct berval *)&slap_empty_bv );
632 assert( !BER_BVISNULL( &msc->msc_bound_ndn ) );
638 META_BACK_CONN_CREATING_CLEAR( msc );
644 META_BACK_CONN_INITED_SET( msc );
676 metasingleconn_t *msc = &mc->mc_conns[ candidate ];
683 assert( !META_BACK_CONN_CREATING( msc ) );
684 binding = LDAP_BACK_CONN_BINDING( msc );
685 LDAP_BACK_CONN_BINDING_CLEAR( msc );
698 BER_BVISNULL( &msc->msc_bound_ndn ) ?
699 "" : msc->msc_bound_ndn.bv_val );
708 LDAP_BACK_CONN_ISBOUND_CLEAR( msc );
718 LDAP_BACK_CONN_BINDING_SET( msc );
731 if ( !BER_BVISNULL( &msc->msc_bound_ndn ) &&
732 !BER_BVISEMPTY( &msc->msc_bound_ndn ) )
734 LDAP_BACK_CONN_ISBOUND_SET( msc );
737 LDAP_BACK_CONN_ISANON_SET( msc );
742 LDAP_BACK_CONN_BINDING_CLEAR( msc );
759 LDAP_BACK_CONN_BINDING_CLEAR( msc );
1320 metasingleconn_t *msc = NULL;
1432 msc = &mc->mc_conns[ i ];