Hi all,

I'm trying to integrate with Apache for an application server interface that
works with ISAPI. The application server is responsible for generating the
full server response including headers. I'm dong this using the mod-ISAPI
module at this point in testing for compatibility with Apache.

This works reasonably well (I had to make a number of changes to the ISAPI
interface in order to get it to work with Apache), but the biggest issue I
have is I can't figure out how to get Apache to authenticate application
generated Auth requests.

The app requests return 401 Not Authorized headers. Looking with an HTTP spy
(Fiddler) I can see that both browser and server are sending the right
headers back and forth for Basic Authentication (the browser returns the
Authentication header with the username and password).

However, Apache does not validate the username and password, and
authentication fails.

I have the following for the directory I'm working with:

#*** WEB CONNECTION VIRTUAL - wconnect
Alias /wconnect/ "D:/Programs/Apache Group/Apache2/htdocs/wconnect/"

<directory "D:/Programs/Apache Group/Apache2/htdocs/wconnect/">
Options ExecCGI
DirectoryIndex default.htm
AddHandler isapi-isa dll

AuthType Basic
AuthUserFile d:\server\users\passwords.txt

AllowOverride None
Allow From all

#*** WEB CONNECTION VIRTUAL SCRIPT MAPS
AddType application/webconnection-script .wc .wcs .fxp .wwt .wwd .wwsoap
Action webconnection-script /wconnect/wc.dll
AddHandler webconnection-script .wc .wcs .fxp .wwt .wwd .wwsoap
#*** END WEB CONNECTION VIRTUAL SCRIPT MAPS

</directory>
#*** END WEB CONNECTION VIRTUAL - wconnect

The login dialog pops up fine for the Auth request, however Apache seems to
not go to the user file to validate... 

Is there anything I'm missing here?

+++ Rick ---



Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwThreads
----------------------------------
Making waves on the Web 


 

Reply via email to