简体   繁体   English

在 MSSQL (linux docker) 上为本地 Windows 用户创建登录

[英]Create login for local Windows user on MSSQL (linux docker)

Is it possible to create a windows user login for MSSQL that runs as linux based docker image on the Windows PC (no Active Directory)?是否可以为在 Windows PC(无 Active Directory)上作为基于 linux 的 docker 映像运行的 MSSQL 创建 Windows 用户登录?

CREATE LOGIN [PC-NAME\LocalUser] FROM WINDOWS

If yes, which configuration the docker image needs, to be able to do this?如果是,docker 镜像需要哪些配置才能做到这一点? Currently I got the following error:目前我收到以下错误:

Windows NT user or group 'PC-NAME\LocalUser' not found. Check the name again.

MS Docs: Configure SQL Server 2017 container images on Docker MS Docs:在 Docker 上配置 SQL Server 2017 容器映像

Eugene_Resnick Aug 18, 2017 Anyway to connect to the DB without using SA? Eugene_Resnick 2017 年 8 月 18 日无论如何要在不使用 SA 的情况下连接到数据库? Either a local account on the Windows host or through a gMSA on the host containers domain? Windows 主机上的本地帐户还是主机容器域上的 gMSA? LuisBosquez Aug 23, 2017 LuisBosquez 2017 年 8 月 23 日

@Eugene_Resnick Integrated Authentication is still not supported on SQL Server on Linux . Linux 上的 SQL Server 仍然不支持@Eugene_Resnick集成身份验证 You can create a new login and connect to it like a regular installation of SQL Server.您可以创建一个新的登录名并像 SQL Server 的常规安装一样连接到它。 In fact, we recommend at least changing the SA password after it was first provisioned.事实上,我们建议至少在首次配置后更改 SA 密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM