Build SQL Connection string with integrated security for use over VPN?

北慕城南 提交于 2019-12-01 22:19:52
Ben

The VPN is a red herring. The issue is that the user is not logged in under the same domain as the SQL Server. The same issue would arise with any non-domain-joined PC, whether on a VPN or not.

  1. You could join the PC to the domain. This is the best solution.

  2. You could use the Legacy method - create matching usernames and passwords. However you then need to make sure they stay in sync.

  3. You could use the NET USE command or NetUseAdd API to log in to the domain after connecting to the VPN.

See this question for more:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!