单点登录与Apache在Windows 7和mod_auth_sspi [英] Single Sign On with apache on windows 7 and mod_auth_sspi

查看:614
本文介绍了单点登录与Apache在Windows 7和mod_auth_sspi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行在我的本地Windows 7 PC上的Apache(XAMPP 1.7.3)服务器。该电脑连接到LAN和所谓的颜色一个Active Directory域。我的本地用户名是克里斯托弗 - PC /克里斯托弗和域用户名是COLOURS /克里斯托弗。

I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher.

有关管理连接AD服务器,我用脚本调用的PHP adLDAP 。由于默认情况下,这个脚本(例子/ authenticate.php)为用户提供了登录两个输入字段。这工作得很好。

For admin connection to the AD server, I use a PHP scripted called adLDAP. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine.

但我想我的用户在如果他们登录到他们的AD帐户自动登录。为此,我正在尝试使用 mod_auth_sspi模块。但我有一些问题...:\

But I want my users to auto sign in if they are logged in to their AD account. For this I'm trying to use the mod_auth_sspi module. But I'm having some problems... :\

我的httpd.conf中是这样的:

<Directory "C:/xampp/htdocs">
  Options Indexes FollowSymLinks Includes ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all

  AuthName "A Protected Place"
  AuthType SSPI
  SSPIAuth On
  SSPIAuthoritative On
  SSPIDomain colours
  SSPIOfferBasic On
  SSPIBasicPreferred On
  require valid-user
</Directory>

当我去的http://本地主机/ 或的 HTTP://我的IP地址的/ (从另一台计算机)我对话框弹出,并要求域用户名和密码。我知道,这是造成需要有效的用户,但如果我删除它,用户不会自动登录。

When i go to http://localhost/ or http://my-ip-address/ (from another computer) i dialogue box pops up and asks for the domain username and password. I know that this is caused by "require valid-user", but if I remove it the user is not auto logged in.

推荐答案

执行以下操作:

  1. 添加集成身份验证的IE浏览器的高级安全性。
  2. 添加您的网址上(http://我的IP地址的/)到受信任的区域

这篇关于单点登录与Apache在Windows 7和mod_auth_sspi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆