time_t mt_network_timeout;
time_t mt_idle_timeout;
struct timeval mt_bind_timeout;
-#define META_BIND_TIMEOUT 10000
+#define META_BIND_TIMEOUT LDAP_BACK_RESULT_UTIMEOUT
time_t mt_timeout[ LDAP_BACK_OP_LAST ];
} metatarget_t;
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
case 0:
snprintf( buf, sizeof( buf ),
- "ldap_result=0 nretries=%d%s\n",
+ "ldap_result=0 nretries=%d%s",
nretries, rebinding ? " rebinding" : "" );
Debug( LDAP_DEBUG_ANY,
"%s meta_back_single_bind[%d]: %s.\n",
tv = mt->mt_bind_timeout;
goto retry;
}
+
rs->sr_err = LDAP_BUSY;
if ( rebinding ) {
ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL );
case -1:
ldap_get_option( msc->msc_ld, LDAP_OPT_ERROR_NUMBER,
- &rs->sr_err );
+ &rs->sr_err );
if ( rebinding ) {
ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL );
/* fallthru */
case -1:
- ldap_get_option( msc->msc_ld,
- LDAP_OPT_ERROR_NUMBER, &rs->sr_err );
+ ldap_get_option( msc->msc_ld, LDAP_OPT_ERROR_NUMBER,
+ &rs->sr_err );
if ( rebinding ) {
ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL );