登入网站,而不用密码和用户名使用的用户形成的Active Directory域登入、用户名、密码、用户

2023-09-08 13:13:02 作者:没有你的世界,心是乱的

我有一个问题。我有一个网站上的Apache2.2。我需要提供此功能的客户端。 当用户在其Active Directory域中打开该用户必须自动登录该网站。

I have a question. I have a site on apache2.2. I need provide this feature for client. When user which in active directory domain open the site that user must be login automatically.

我真的不知道如何做到这一点的东西。请帮我。因此,如果用户在域,这个用户必须自动登录和他的昵称必须是相同的昵称在Active Directory中。域

Really i don't know how to do this stuff. Please help me. So if user in domain that this user must be login automatically and his nickname must be same as nickname in active directory. domain

推荐答案

它实际上是可能的NTLM身份验证。您需要 AuthenNTLM -plugin,这将验证用户使用Internet Explorer。一个例子语法是

It actually is possible with NTLM authentication. You need the AuthenNTLM-plugin, which will authenticate a user using the Internet Explorer. An example syntax would be

<Location />
    PerlAuthenHandler Apache::AuthenNTLM 
    AuthType ntlm,basic
    AuthName test
    require valid-user

    #                    domain             pdc                bdc
    PerlAddVar ntdomain "name_domain1   name_of_pdc1"
    PerlAddVar ntdomain "other_domain   pdc_for_domain    bdc_for_domain"

    PerlSetVar defaultdomain wingr1
    PerlSetVar ntlmdebug 1
</Location>
## taken from the documentation

请参阅模块文档获得更多的选择并在设置的具体说明 - 上面应该让你在正确的方向开始

Please refer to the module documentation for more options and specific instructions on the setup - the above should get you started in the right direction.

在客户端,Internet Explorer和Firefox应该可以进行一些配置后自动登录(火狐需要一点点的特殊照顾 - 这可以通过部署期间设置配置变量)来实现

On the client side, Internet Explorer and Firefox should be able to login automatically after some configuration (Firefox needing a bit of special care - which may be achieved by setting the configuration variables during deployment).