From 9e1458724b87125d5b86e920e0b6c6aa7f6b577d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 13 Oct 2000 18:30:24 +0000 Subject: [PATCH] Use LDAP_VERSION3 instead of 3 --- clients/tools/ldapmodify.c | 2 +- clients/tools/ldappasswd.c | 2 +- clients/tools/ldapsearch.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 2bb835a64e..50c05c4d01 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -600,7 +600,7 @@ main( int argc, char **argv ) if (version == -1 ) { - version = 3; + version = LDAP_VERSION3; } if( ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version ) diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index b0cdfb6dea..ee5547d8ec 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -591,7 +591,7 @@ main( int argc, char *argv[] ) } /* LDAPv3 only */ - version = 3; + version = LDAP_VERSION3; rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version ); if(rc != LDAP_OPT_SUCCESS ) { diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index c4432f67e9..786a4d803e 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -723,7 +723,7 @@ main( int argc, char **argv ) } if (version == -1 ) { - version = 3; + version = LDAP_VERSION3; } if( ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version ) -- 2.39.5