Greetings all,

I'm trying to do basic authentication using IIS 6.0 with PHP as an ISAPI 
module.  I can get the dialog to pop up no problem, but when I enter a 
name/password, it doesn't come back in the header.  After checking the 
documentation, I found that the $PHP_AUTH_USER and $PHP_AUTH_PW are not 
available in IIS 6.0 and that I had to use the HTTP_AUTHORIZATION variable like 
so:

list($user, $pw) = explode(':', 
base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
 
This still did not work.  So a little longer search found this site 
http://pessoal.org/blog/?p=32 that found that in IIS 6.0, the 
HTTP_AUTHORIZATION would be in the ALL_HTTP variable.

So I made that change.  I'm still not getting anything back.  I enter username 
and password and the HTTP_AUTHORIZATION doesn't appear anywhere in the ALL_HTTP 
variable.

I'm stuck.  Has anybody here done that?  Any help or pointers is appreciated.  
Thanks!

-D. Israel
[EMAIL PROTECTED]
http://www.customcodebydan.com
AIM: JudoDanIzz

Can you name the movie this was in:

Stay in school and use your brain. Be a doctor, be a lawyer, carry a leather 
briefcase. Forget about sports as a profession. Sports make ya grunt and smell. 
See, be a thinker, not a stinker.


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to