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:
parent
a2489f2e42
commit
e041b599d8
@ -119,6 +119,7 @@ Guy Pascarella
|
||||
Grzegorz Kołakowski
|
||||
Jan Hendrik Dolling
|
||||
Jiabao Sun
|
||||
Juan Fiallo
|
||||
Hans-Peter Grahsl
|
||||
Harvey Yue
|
||||
Henryk Konsek
|
||||
|
@ -324,7 +324,7 @@ public static SnapshotIsolationMode parse(String value, String defaultValue) {
|
||||
DATABASE_NAMES,
|
||||
HOSTNAME,
|
||||
PORT,
|
||||
USER,
|
||||
USER_OPTIONAL,
|
||||
PASSWORD,
|
||||
SERVER_TIMEZONE,
|
||||
INSTANCE)
|
||||
|
@ -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)
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user