logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_auth_SSPI on windows
Author
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Mon 30 Nov '09 17:40    Post subject: mod_auth_SSPI on windows Reply with quote

Hi,

I have set-up mod_auth_sspi but everytime i try to get LA-U:REMOTE_USER IE prompts me to log in. As it turns out LA-U:REMOTE_USER is always null. What am i doing wrong here? Here are the relevent (i hope!) sections of httpd.conf...any advice appreciated.

Marc

<VirtualHost *:443>
ServerName localhost
ServerAlias localhost
CustomLog C:\apache\logs\plone\443access.log combined
ErrorLog C:\apache\logs\plone\443error.log
LogLevel warn

#authenticate
<IfModule mod_auth_sspi.c>
<Location />
#set up sspi
AuthName "Extranet"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain NNTHA
SSPIOfferBasic On
SSPIUsernameCase lower
SSPIBasicPreferred Off
SSPIPerRequestAuth on
SSPIOfferSSPI On
SSPIOmitDomain On
require valid-user
</Location>
</IfModule>

<snip mod_ssl config...>

<IfModule mod_rewrite.c>
#do the rewrite
RewriteEngine On

# Put the username into a request header:
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* - [E=RU:%1]
RequestHeader set X_REMOTE_USER %{RU}e

RewriteRule ^/(.*) \
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:443/$1 [L,P,E=RU:%1]

</IfModule>

<snip mod_proxy config...>
</VirtualHost>
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Mon 30 Nov '09 17:59    Post subject: Reply with quote

Headers in IE. Seems to be authenticated but not setting the X_Remote_User header....

GET / HTTP/1.1
Accept: */*
Accept-Language: en-gb
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Accept-Encoding: gzip, deflate
Host: localhost
Connection: Keep-Alive
Authorization: NTLM TlRMTVNTUAABAAAAB7IIogUABQAxAAAACQAJACgAAAAFASgKAAAAD1BDMDQwNzVWTU5OVEhB
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Mon 30 Nov '09 19:00    Post subject: Reply with quote

Although the access.log doesnt return the user either...

127.0.0.1 - - [30/Nov/2009:16:57:06 +0000] "GET / HTTP/1.1" 401 401 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"
127.0.0.1 - - [30/Nov/2009:16:57:06 +0000] "GET / HTTP/1.1" 401 401 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"
Back to top
black_harry



Joined: 22 Feb 2010
Posts: 15
Location: Germany, Stuttgart

PostPosted: Mon 22 Feb '10 17:20    Post subject: Reply with quote

Hello birkettm,
try to adjust your ssl.conf:
sspi-authentication always requires HTTP/1.1

short comment / extraction from my ssl.conf

# disable next 3 lines to be able to serv ntlm-restricted pages via MS-Proxy
#BrowserMatch ".*MSIE.*" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0

Greetings,
Harry
Back to top


Reply to topic   Topic: mod_auth_SSPI on windows View previous topic :: View next topic
Post new topic   Forum Index -> Apache