我在nodeJS NPMMSSQL8.1.2中使用了下面的代码,但我得到
登录来自不受信任的域,不能与Windows身份验证一起使用。SSPI握手失败。与集成安全性建立连接时出错。
const sql = require('mssql');
let connectionstring = {
domain: 'abc',
driver: 'msnodesqlv8',
server: server,
user: username,
password: password,
database: database,
options: {
trustedconnection: true,
enablearithabort: true,
encrypt: true
}
};如何解决这个问题?
发布于 2022-08-06 15:27:43
大多数驱动程序不能使用Windows提供的凭据;它们只通过使用当前进程的标识来支持Windows,或者通过将凭据注入Windows凭据存储所提供的标识,或者使用runas /netonly注入到进程中。
https://stackoverflow.com/questions/73260888
复制相似问题