DBZ-3517 Making database.user optional for SQL Server.

SQL Server doesn't require username/password when using Kerberos authentication, which can be configured using pass-through database properties. Changing the database.user config to be optional for SQL Server Connector to reflect that.
This commit is contained in:
Juan Fiallo 2021-10-14 10:31:27 -04:00 committed by Gunnar Morling
parent a2489f2e42
commit e041b599d8
4 changed files with 7 additions and 4 deletions

View File

@ -119,6 +119,7 @@ Guy Pascarella
Grzegorz Kołakowski
Jan Hendrik Dolling
Jiabao Sun
Juan Fiallo
Hans-Peter Grahsl
Harvey Yue
Henryk Konsek

View File

@ -324,7 +324,7 @@ public static SnapshotIsolationMode parse(String value, String defaultValue) {
DATABASE_NAMES,
HOSTNAME,
PORT,
USER,
USER_OPTIONAL,
PASSWORD,
SERVER_TIMEZONE,
INSTANCE)

View File

@ -163,15 +163,16 @@ public static DecimalHandlingMode parse(String value, String defaultValue) {
.withValidation(Field::isInteger)
.withDescription("Port of the database server.");
public static final Field USER = Field.create(DATABASE_CONFIG_PREFIX + JdbcConfiguration.USER)
public static final Field USER_OPTIONAL = Field.create(DATABASE_CONFIG_PREFIX + JdbcConfiguration.USER)
.withDisplayName("User")
.withType(Type.STRING)
.withGroup(Field.createGroupEntry(Field.Group.CONNECTION, 4))
.withWidth(Width.SHORT)
.withImportance(Importance.HIGH)
.required()
.withDescription("Name of the database user to be used when connecting to the database.");
public static final Field USER = USER_OPTIONAL.required();
public static final Field PASSWORD = Field.create(DATABASE_CONFIG_PREFIX + JdbcConfiguration.PASSWORD)
.withDisplayName("Password")
.withType(Type.PASSWORD)

View File

@ -94,4 +94,5 @@ jiabao.sun,Jiabao Sun
indraraj,Indra Shukla
judahrand,Judah Rand
zxpzlp,Xiaopu Zhu
unalsurmeli,Ünal Sürmeli
unalsurmeli,Ünal Sürmeli
juanfiallo,Juan Fiallo