You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rasmus Lerdorf <ra...@linuxcare.com> on 2000/07/05 18:15:49 UTC
1.3 API question
PHP can do standard HTTP authentication directly even though it is run as
a content handler. You can send the 401 directly from a PHP script. PHP
then sets $PHP_AUTH_USER and $PHP_AUTH_PW variables from the Authorization
header allowing people to authenticate against whatever backend they wish.
However, I still haven't figured out how to get the authenticated name
into the %u part of the log. I, of course, tried the obvious:
r->connection->user = pstrdup(r->pool,auth_user);
r->connection->ap_auth_type = "Basic";
but this didn't do the trick. What did I miss?
-Rasmus