我已经configurationApache来使用mod_auth_kerberos 。 到目前为止,对于连接到Active Directory的客户端以及浏览器启用NTLM,一切正常。
当客户端不在域中或浏览器configuration为不自动进行身份validation时,会通过2次login提示进行提示。
第一个login提示是空的,第二个是我们configuration的
首次login提示:

第二次login提示:

从日志(第一次authentication):
[Wed Jan 06 15:47:29 2010] [debug] src/mod_auth_kerb.c(1684): [client xxxx] [pid 2562] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
在第一次login提示中,我可以放任何用户名和密码的文本。 一旦第一个login表单提交,它将要求第二个login提示。
Apache有以下configuration:
<Directory /web/apache2/htdocs> AllowOverride All AuthType Kerberos AuthName "Staff Access ONLY Kerb-Auth" KrbAuthRealms EXAMPLE.COM Krb5Keytab /etc/httpd/conf.d/example.ktab Allow from localhost Require valid-user <Directory>
什么可能是第一个身份validation的原因,我怎么能摆脱他们?
只有IE会提示你两次。 例如,Firefox只会显示configuration的login提示。 要解决这个问题,你必须把特定的网站添加到你的“本地内部网”或者你的“可信站点”(Internet选项 – >安全标签 – >“本地内部网”)。 我不知道哪一个,但我认为这是“本地内部网”。