/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1999-2005 The OpenLDAP Foundation.
+ * Copyright 1999-2006 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
/* we need meta_back_getconn() not send result even on error,
* because we want to intercept the error and make it
* invalidCredentials */
- mc = meta_back_getconn( op, rs, NULL, LDAP_BACK_DONTSEND );
+ mc = meta_back_getconn( op, rs, NULL, LDAP_BACK_BIND_SERR );
if ( !mc ) {
char buf[ SLAP_TEXT_BUFLEN ];
* handle response!!!
*/
retry:;
- tv = mt->mt_bind_timeout;
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
case 0:
snprintf( buf, sizeof( buf ),
if ( nretries > 0 ) {
nretries--;
}
- LDAP_BACK_TV_SET( &tv );
+ tv = mt->mt_bind_timeout;
goto retry;
}
rs->sr_err = LDAP_BUSY;
* handle response!!!
*/
retry:;
- tv = mt->mt_bind_timeout;
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
case 0:
snprintf( buf, sizeof( buf ),
if ( nretries > 0 ) {
nretries--;
}
- LDAP_BACK_TV_SET( &tv );
+ tv = mt->mt_bind_timeout;
goto retry;
}