From: Kurt Zeilenga Date: Thu, 20 Dec 2001 05:58:08 +0000 (+0000) Subject: concurrency tests should be using LDAPv3 X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~593 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4bbf7aaae25cb5e6753edceb7fc7380541e6414a;p=openldap concurrency tests should be using LDAPv3 --- diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index 09849483e0..c49f18ef4c 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -241,6 +241,12 @@ do_addel( 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 ) != LDAP_SUCCESS ) { ldap_perror( ld, "ldap_bind" ); diff --git a/tests/progs/slapd-read.c b/tests/progs/slapd-read.c index e11995a6ff..151140fe9e 100644 --- a/tests/progs/slapd-read.c +++ b/tests/progs/slapd-read.c @@ -93,6 +93,12 @@ do_read( char *host, int port, char *entry, int maxloop ) 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 ) { ldap_perror( ld, "ldap_bind" ); exit( EXIT_FAILURE ); diff --git a/tests/progs/slapd-search.c b/tests/progs/slapd-search.c index 1737d4d669..1469383f5d 100644 --- a/tests/progs/slapd-search.c +++ b/tests/progs/slapd-search.c @@ -99,6 +99,12 @@ do_search( char *host, int port, char *sbase, char *filter, int maxloop ) 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 ) { ldap_perror( ld, "ldap_bind" ); exit( EXIT_FAILURE );