suppressing PHP_AUTH_PW with mod_auth_kerb?
| From: | Reece Hart | Date: | Wed, 07 Sep 2005 02:43:11 +0000 |
| Subject: | suppressing PHP_AUTH_PW with mod_auth_kerb? | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16631@lists.php.net to get a copy of this message | ||
I'm running Apache 2.x with mod_php and mod_auth_kerb.
With CGIs, mod_auth_kerb uses the basic authentication response password
to obtain a TGT. The password itself is not exposed to the CGI. Great.
With PHP scripts, PHP provides the basic auth challenge, sets
PHP_AUTH_USER and _PW, and mod_auth_kerb gets a TGT. The problem is that
PHP_AUTH_PW is passed to the PHP scripts and I don't want developers to
be able to see users' passwords.
So, is there a way to suppress the setting of PHP_AUTH_PW? I want PHP
scripts get a trustworthy PHP_AUTH_USER and a krb TGT without leaking
passwords.
Thanks,
Reece
--
Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0