php/firefox/digest authentication

Don Russell fedora at drussell.dnsalias.com
Wed Mar 15 17:34:15 UTC 2006


I found some examples of using digest authentication from a php script, 
but it appears php is not creating the proper variables 
($_SERVER['PHP_AUTH_DIGEST'])... or firefox is not creating the proper 
headers.... (or the examples don't actually work)

Sample script I'm working from: 
http://www.zend.com/manual/features.http-auth.php

See sample 34-2 (34-1 uses Basic authentication which does work fine...)

When I try this script, I get prompted for a userid/password, but when I 
click OK, I just get prompted again.

The sample uses hard-coded userid/password pairs of admin/mypass and 
guest/guest

Neither of those get me past the prompt.

php is version 5.0.4 running on FC4
firefox is 1.5.0.1 (on windows in this case)

For grins, I tried accessing it with IE6... IE6 just chokes saying the 
page can't be displayed... no prompt at all.

Any suggestions?

Thanks,
Don Russell




More information about the fedora-list mailing list