From 4bbf7aaae25cb5e6753edceb7fc7380541e6414a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 20 Dec 2001 05:58:08 +0000 Subject: [PATCH] concurrency tests should be using LDAPv3 --- tests/progs/slapd-addel.c | 6 ++++++ tests/progs/slapd-read.c | 6 ++++++ tests/progs/slapd-search.c | 6 ++++++ 3 files changed, 18 insertions(+) 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 ); -- 2.39.5