concurrency tests should be using LDAPv3

This commit is contained in:
Kurt Zeilenga 2001-12-20 05:58:08 +00:00
parent b64374fba1
commit 4bbf7aaae2
3 changed files with 18 additions and 0 deletions

View File

@ -241,6 +241,12 @@ do_addel(
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
} }
{
int version = LDAP_VERSION3;
(void) ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
&version );
}
if ( ldap_bind_s( ld, manager, passwd, LDAP_AUTH_SIMPLE ) if ( ldap_bind_s( ld, manager, passwd, LDAP_AUTH_SIMPLE )
!= LDAP_SUCCESS ) { != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_bind" ); ldap_perror( ld, "ldap_bind" );

View File

@ -93,6 +93,12 @@ do_read( char *host, int port, char *entry, int maxloop )
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
} }
{
int version = LDAP_VERSION3;
(void) ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
&version );
}
if ( ldap_bind_s( ld, NULL, NULL, LDAP_AUTH_SIMPLE ) != LDAP_SUCCESS ) { if ( ldap_bind_s( ld, NULL, NULL, LDAP_AUTH_SIMPLE ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_bind" ); ldap_perror( ld, "ldap_bind" );
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );

View File

@ -99,6 +99,12 @@ do_search( char *host, int port, char *sbase, char *filter, int maxloop )
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
} }
{
int version = LDAP_VERSION3;
(void) ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
&version );
}
if ( ldap_bind_s( ld, NULL, NULL, LDAP_AUTH_SIMPLE ) != LDAP_SUCCESS ) { if ( ldap_bind_s( ld, NULL, NULL, LDAP_AUTH_SIMPLE ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_bind" ); ldap_perror( ld, "ldap_bind" );
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );