You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ms...@freezone.co.uk on 2004/12/11 22:31:25 UTC
[users@httpd] No AUTH_TYPE using Handler
My "handler" - handle.pl - doesn't get an AUTH_TYPE environment
variable, but my script - moin.cgi - requires it.
moin.cgi uses AUTH_TYPE & REMOTE_USER environment variables for user
authentication, which works great without a "handler". I use handle.pl
for some postprocessing on my site, with the "SetHandler /handle.pl"
directive. handle.pl in turn calls moin.cgi.
If I set authentication for handle.pl, the environment contains
AUTH_TYPE & REMOTE_USER variables - but this isn't practical since it
handles many resources which shouldn't require authentication.
Instead, I set authentication for moin.cgi. In this case, the
environment contains REDIRECT_REMOTE_USER, instead of REMOTE_USER. It's
simple enough to set REMOTE_USER to the value of REDIRECT_REMOTE_USER
in handle.pl, before calling moin.cgi, but the environment contains no
variable with the AUTH_TYPE. I don't know how to determine the
AUTH_TYPE (Basic, Negotiate, etc.) in handle.pl, in order to set the
AUTH_TYPE environment variable for moin.cgi.
Can anyone help?
Thanks!
Jack
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org