PHP:使用Apache和Wamp服务器的不同Windows用户凭据

发布于 2025-02-13 17:01:50 字数 322 浏览 0 评论 0原文

在我的公司中,我们目前正在使用BD查询的SQLSRV驱动程序运行WAMP服务器,我们希望将Windows Authentication用于SQLSRV连接而不是SQL auth,但是 default Windows用户与用户不同。我们需要访问SQLSRV主机

我正在寻找一种在使用PHP中使用Windows身份验证时,将凭据从默认用户更改为新用户的方法。我想知道是否可以从Apache配置或Wamp Server中的其他工具进行操作。

我尝试以其他用户的身份开始Apache服务,而整个WAMP服务器都作为不同的用户,但没有区别。

In my company we are currently running a WAMP server with SQLSRV drivers for our BD query's, we are looking to use Windows Authentication for SQLSRV connection instead of SQL AUTH , But the default Windows User where the WAMP server is different from the user we need to access the SQLSRV host.

Im looking for a way to change the credentials from the default user to a new user when using Windows Authentication in PHP. I was wondering if is possible to do it from Apache configuration or other tool inside WAMP server.

I have tried starting Apache service as a different user, and the entire WAMP server as different user, but make no difference.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文