Home IIS.NET Forums Partner and Community Forums PHP Community WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi
Last post May 30, 2007 01:10 AM by rickjames
4 Posts
Dec 10, 2006 10:16 PM|aspen.olmsted@alliance.biz|LINK
415 Posts
Microsoft
Dec 12, 2006 12:28 PM|bills|LINK
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
{
error_log("Http_authorization: " . $_SERVER['HTTP_AUTHORIZATION']);
error_log("Decoded Http_authorization: " . base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'],5)));
exit;
}
header(
?>
191 Posts
May 30, 2007 01:10 AM|rickjames|LINK
Hi Aspen,
What are you expecting HTTP_AUTHORIZATION to contain?
Thanks,
Rick.
4 Posts
WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi
Dec 10, 2006 10:16 PM|aspen.olmsted@alliance.biz|LINK
415 Posts
Microsoft
Re: WWW-Authenticate: Negotiate or WWW-Authenticate: NTLM in fastcgi
Dec 12, 2006 12:28 PM|bills|LINK
Bill Staples
Product Unit Manager, IIS
blog: http://blogs.iis.net/bills
4 Posts
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;}
?>
191 Posts
Microsoft
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.