Apache - Configuring mod_auth_sspi.so

回眸只為那壹抹淺笑 提交于 2019-12-12 22:01:29

问题


I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server (V2.2).

I have implemented the Auth remoteuser extension and has implemented the mod_auth_sspi.so in my httpd.conf file and has configure it to be as follows

<IfModule !mod_auth_sspi.c>
    LoadModule sspi_auth_module modules/mod_auth_sspi.so
</IfModule>
<Location "file/to/path">
    Options FollowSymLinks
    Order allow,deny
    Allow from all
    AuthName "TestWeb"
    AuthType SSPI 
    SSPIAuth On 
    SSPIAuthoritative On
    SSPIOmitDomain On
    SSPIOfferBasic on
    Require valid-user 
</Location>

However, it gives me the prompt to type in the username and password on IE/Firefox/Chrome which I don't want the prompt to appear. I want it to auto login to mediawiki straight without the prompt. Which step am I doing wrong?

How may I achieve the above? Thanks for all assistance!


回答1:


Remove 'SSPIOfferBasic on' and make sure your IE options are set as described here:

Single Sign On with apache on windows 7 and mod_auth_sspi

SSPIOfferBasic means "clients, you can authenticate, using basic auth", so most browsers will chose that instead of SSO/NTLM



来源:https://stackoverflow.com/questions/30769469/apache-configuring-mod-auth-sspi-so

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!