1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00
This commit is contained in:
Adria Navarro 2023-07-11 15:41:49 +02:00
parent 4280e08f22
commit 119506fcc7

View file

@ -57,8 +57,8 @@ interface AzureADMSSQLConfig extends BasicMSSQLConfig {
interface NTLMMSSQLConfig extends BasicMSSQLConfig {
authType: MSSQLConfigAuthType.NTLM
ntlmConfig: {
domain: string
trustServerCertificate: boolean
domain?: string
trustServerCertificate?: boolean
}
}
@ -159,12 +159,12 @@ const SCHEMA: Integration = {
fields: {
domain: {
type: DatasourceFieldType.STRING,
required: true,
required: false,
display: "Domain",
},
trustServerCertificate: {
type: DatasourceFieldType.BOOLEAN,
required: true,
required: false,
display: "Trust server certificate",
},
},
@ -271,7 +271,7 @@ class SqlServerIntegration extends Sql implements DatasourcePlus {
case MSSQLConfigAuthType.NTLM:
const { domain, trustServerCertificate } = this.config.ntlmConfig
clientCfg.authentication = {
type: "ntml",
type: "ntlm",
options: {
domain,
},