Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_auth_sspi config |
|
Author |
|
birkettm
Joined: 27 Apr 2006 Posts: 20
|
Posted: Wed 02 Dec '09 16:31 Post subject: mod_auth_sspi config |
|
|
Hi
I have a basic mod_auth_sspi config which authenticates the user coming in from IE. How do i get the username from the incoming request? Fiddler confirms that an Authorization Header is present in the incoming request: Authorization Header is present: NTLM, but the RequestHeader add line does nothing....
Any advice appreciated...Ta!
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
ServerSignature On
CustomLog C:\apache\logs\access.log combined
ErrorLog C:\apache\logs\error.log
LogLevel debug
<Location />
AuthName "A Protected Place"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
# SSPIBasicPreferred
# SSPIUsernameCase lower
#disable this when sorted
require valid-user
RewriteEngineOn
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* - [E=RU:%1]
RequestHeader set X_REMOTE_USER %{RU}e
</Location>
</VirtualHost> |
|
Back to top |
|
black_harry
Joined: 22 Feb 2010 Posts: 15 Location: Germany, Stuttgart
|
Posted: Tue 23 Feb '10 11:27 Post subject: mod_auth_sspi config |
|
|
Hi birkettm,
I assume that you need the user-id in a script / CGI.
So please try printing the environment variables with a script, e.g. with the included "printenv.pl" in Apache, if you have Perl installed.
The Output of the environment shows this:
...
REMOTE_PORT="3138"
REMOTE_USER="Domain\UserID"
REQUEST_METHOD="GET"
... |
|
Back to top |
|
|
|
|
|
|