WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi [Answered]RSS

3 replies

Last post May 30, 2007 01:10 AM by rickjames

  • WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi

    Dec 10, 2006 10:16 PM|aspen.olmsted@alliance.biz|LINK

    Is it possible to use Negotiate or NTLM authentication in fastcgi mode?
  • bills bills

    415 Posts

    Microsoft

    Re: WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi

    Dec 12, 2006 12:28 PM|bills|LINK

    yep, you can use any authentication method IIS supports
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Bill Staples
    Product Unit Manager, IIS
    blog: http://blogs.iis.net/bills
  • Re: WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi

    Dec 12, 2006 09:31 PM|aspen.olmsted@alliance.biz|LINK

    I can get NTLM to authenticate but I can not figure out how to get the user code:

    <?php

    if(isset($_SERVER['HTTP_AUTHORIZATION']))

    {

    error_log("Http_authorization: " . $_SERVER['HTTP_AUTHORIZATION']);

    error_log("Decoded Http_authorization: " . base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'],5)));

    exit;

    }

    if (!isset($_SERVER['PHP_AUTH_USER']))

    {

    header('WWW-Authenticate: Negotiate');

    header('WWW-Authenticate: NTLM',false);

    header('HTTP/1.0 401 Unauthorized');

    echo 'Text to send if user hits Cancel button';

    exit;

    }

    ?>

  • Re: WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi

    May 30, 2007 01:10 AM|rickjames|LINK

    Hi Aspen,

    What are you expecting HTTP_AUTHORIZATION to contain?

    Thanks,

    Rick.