Lines Matching defs:ldversion
220 static int ldversion = -1; /* use default */
617 ldversion = atoi (optarg);
618 if ( ldversion != LDAP_VERSION2 && ldversion != LDAP_VERSION3 ) {
621 ldaptool_progname, ldversion, LDAP_VERSION2,
695 ldversion = LDAP_VERSION3;
877 if (ldversion == LDAP_VERSION2 && ldapauth == LDAP_AUTH_SASL) {
878 fprintf( stderr, gettext("Incompatible with version %d\n"), ldversion);
1148 if ( ldversion == -1 ) { /* not set with -V */
1149 ldversion = LDAP_VERSION2; /* local db only supports v2 */
1162 if ( ldversion == -1 ) { /* not set with -V and not using local db */
1163 ldversion = LDAP_VERSION3;
1165 ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &ldversion );
1206 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1258 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1278 if ( rc == LDAP_PROTOCOL_ERROR && ldversion > LDAP_VERSION2 ) {
1284 --ldversion;
1287 ldversion + 1, ldversion );
1288 ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &ldversion );