From 51c72efb34c4cb13151f21a0117bd30dc8b485d0 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 7 Aug 2022 15:13:10 +0200 Subject: [PATCH] fixed NTLM auth in SQL server #305 --- plugins/dbgate-plugin-mssql/src/backend/tediousDriver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dbgate-plugin-mssql/src/backend/tediousDriver.js b/plugins/dbgate-plugin-mssql/src/backend/tediousDriver.js index 56b46753..4389667d 100644 --- a/plugins/dbgate-plugin-mssql/src/backend/tediousDriver.js +++ b/plugins/dbgate-plugin-mssql/src/backend/tediousDriver.js @@ -22,7 +22,7 @@ function extractTediousColumns(columns, addDriverNativeColumn = false) { return res; } -async function tediousConnect({ server, port, user, password, database, ssl, trustServerCertificate, windowsDomnain }) { +async function tediousConnect({ server, port, user, password, database, ssl, trustServerCertificate, windowsDomain }) { return new Promise((resolve, reject) => { const connectionOptions = { encrypt: !!ssl, @@ -43,11 +43,11 @@ async function tediousConnect({ server, port, user, password, database, ssl, tru server, authentication: { - type: windowsDomnain ? 'ntlm' : 'default', + type: windowsDomain ? 'ntlm' : 'default', options: { userName: user, password: password, - ...(windowsDomnain ? { domain: windowsDomnain } : {}), + ...(windowsDomain ? { domain: windowsDomain } : {}), }, },