我试图让访问者在访问 Intranet 站点时登录 NT。看来 SSPI 模块是我正在寻找的。但是安装后我无法让 WAMP 恢复运行。任何援助将不胜感激。提前致谢。
我下载了 mod 并按照安装说明进行操作:
将 mod_auth_sspi.so 复制到 C:\wamp\bin\apache\Apache2.2.17\modules
将 sspipkgs.exe 复制到 C:\wamp\bin\apache\Apache2.2.17\bin (这不在说明中,但我在另一组方向上看到了该步骤,无论是否在这里,我都有同样的问题)
复制“LoadModule sspi_auth_module modules/mod_auth_sspi.so”行并放在 httpd.conf 中列出的其他模块的最后
复制以下代码:
<Directory "C:/SSPI">
AllowOverride None
Options None
Order allow,deny
Allow from all
AuthName "My Intranet"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
require valid-user
</Directory>
进入 httpd.conf 的最后
注意:我认为 Directory 标签中的路径不正确,但不确定应该是什么,因为安装说明中没有涵盖该部分。
然后我从 WAMP 控制面板重新启动服务,它在橙色之间循环,然后是红色,然后又回到橙色,但永远不会回到绿色。浏览该站点会出现错误 102。Apache 错误日志确实提供了任何线索:
[Wed Apr 06 13:10:32 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Apr 06 13:10:32 2011] [notice] Child 760: Exit event signaled. Child process is ending.
[Wed Apr 06 13:10:33 2011] [notice] Child 760: Released the start mutex
[Wed Apr 06 13:10:34 2011] [notice] Child 760: All worker threads have exited.
[Wed Apr 06 13:10:34 2011] [notice] Child 760: Child process is exiting
[Wed Apr 06 13:10:34 2011] [notice] Parent: Child process exited successfully.
我在 Windows 7(64 位)上运行 WAMP 服务器
阿帕奇 2.2.17
PHP 5.3.4
mod_auth_sspi-1.0.4-2.2.2.zip 通过http://sourceforge.net/projects/mod-auth-sspi/