]> git.sur5r.net Git - openldap/commitdiff
concurrency tests should be using LDAPv3
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 05:58:08 +0000 (05:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 05:58:08 +0000 (05:58 +0000)
tests/progs/slapd-addel.c
tests/progs/slapd-read.c
tests/progs/slapd-search.c

index 09849483e08be48e3e87a32f447b121a057b062a..c49f18ef4c733adfdfe1acbef62ee65ff6d10115 100644 (file)
@@ -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" );
index e11995a6ffb9c6e1645bb47890a025d115903fb0..151140fe9e5ab2c3ef5ef284ab8663540bbb6226 100644 (file)
@@ -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 );
index 1737d4d66935fc54e55ebb2ffcc1a08a2ec0be0b..1469383f5dabe186aaf73edf6d2a095dbc79877f 100644 (file)
@@ -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 );