mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
Use LDAP_VERSION3 instead of 3
This commit is contained in:
parent
1217a452e9
commit
9e1458724b
@ -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 )
|
||||
|
@ -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 ) {
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user