Lines Matching refs:ldversion
221 static int ldversion = -1; /* use default */ variable
618 ldversion = atoi (optarg);
619 if ( ldversion != LDAP_VERSION2 && ldversion != LDAP_VERSION3 ) {
622 ldaptool_progname, ldversion, LDAP_VERSION2,
696 ldversion = LDAP_VERSION3;
878 if (ldversion == LDAP_VERSION2 && ldapauth == LDAP_AUTH_SASL) {
879 fprintf( stderr, gettext("Incompatible with version %d\n"), ldversion);
1149 if ( ldversion == -1 ) { /* not set with -V */
1150 ldversion = LDAP_VERSION2; /* local db only supports v2 */
1163 if ( ldversion == -1 ) { /* not set with -V and not using local db */
1164 ldversion = LDAP_VERSION3;
1166 ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &ldversion );
1207 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1259 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1279 if ( rc == LDAP_PROTOCOL_ERROR && ldversion > LDAP_VERSION2 ) {
1285 --ldversion;
1288 ldversion + 1, ldversion );
1289 ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &ldversion );