This commit is contained in:
Adria Navarro 2023-07-11 15:41:49 +02:00
parent 4280e08f22
commit 119506fcc7
1 changed files with 5 additions and 5 deletions

View File

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