<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simple lightweight NTLM in PHP</title>
	<atom:link href="http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 12:08:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hossain</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-17917</link>
		<dc:creator>Hossain</dc:creator>
		<pubDate>Mon, 12 Dec 2011 12:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-17917</guid>
		<description>Thanks,
Great Help.
Was looking for this for very long time.
Really appreciable.

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Great Help.<br />
Was looking for this for very long time.<br />
Really appreciable.</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hossain</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-17916</link>
		<dc:creator>Hossain</dc:creator>
		<pubDate>Mon, 12 Dec 2011 12:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-17916</guid>
		<description>Thanks,
Great help, was looking for this.
Really appreciable.

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Great help, was looking for this.<br />
Really appreciable.</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThreeM</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-16191</link>
		<dc:creator>ThreeM</dc:creator>
		<pubDate>Mon, 26 Sep 2011 18:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-16191</guid>
		<description>There are a few of you with the issue of needing to send this data via a form or other post methods.  To do this with other applications I have always found it easiest to either use the PHP that generates the page to pass up the variables - $user $domain $workstation in this case - as either JavaScript variables when it writes the script or if all the scripts are includes then hiding it in a hidden form field in the html.  If you need it for multiple forms/scripts you can also just enclose it in a echo &quot;$user&quot;; then to retrieve it just use a getElementById(&#039;#data_user&#039;).innerHTML to return what is in the div element and pass it with the rest of the data in your AJAX (JavaScript w/o reload) call, POST (header), or GET (URL) request.</description>
		<content:encoded><![CDATA[<p>There are a few of you with the issue of needing to send this data via a form or other post methods.  To do this with other applications I have always found it easiest to either use the PHP that generates the page to pass up the variables &#8211; $user $domain $workstation in this case &#8211; as either JavaScript variables when it writes the script or if all the scripts are includes then hiding it in a hidden form field in the html.  If you need it for multiple forms/scripts you can also just enclose it in a echo &#8220;$user&#8221;; then to retrieve it just use a getElementById(&#8216;#data_user&#8217;).innerHTML to return what is in the div element and pass it with the rest of the data in your AJAX (JavaScript w/o reload) call, POST (header), or GET (URL) request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuke</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-14171</link>
		<dc:creator>Nuke</dc:creator>
		<pubDate>Fri, 12 Aug 2011 07:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-14171</guid>
		<description>Hi guys, after wasting half a day debugging my code,; the issue seems to be with ie. Ntlm authentication is required on every page that is posting data across. Which means that if one page has been authenticated using this script all subsequent pages need to run this script in order post any information across; which is why all posts on ie are returning empty and if you try the same  on firefox would work fine. 

Haven&#039;t found a solution yet, but will not POST  on ie unless all pages have this script;

Let me know if anyones found a soulution for this.</description>
		<content:encoded><![CDATA[<p>Hi guys, after wasting half a day debugging my code,; the issue seems to be with ie. Ntlm authentication is required on every page that is posting data across. Which means that if one page has been authenticated using this script all subsequent pages need to run this script in order post any information across; which is why all posts on ie are returning empty and if you try the same  on firefox would work fine. </p>
<p>Haven&#8217;t found a solution yet, but will not POST  on ie unless all pages have this script;</p>
<p>Let me know if anyones found a soulution for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-12074</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 22 Jun 2011 07:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-12074</guid>
		<description>This is a fantastic script, works like a treat but I&#039;m experiencing the same issues as others. I&#039;ve authenticated the user on intranet home page load and then stored what I need in a session. However as others have reported it stops forms from processing.

I have checked the post array and it&#039;s empty when using this. Is there any answer of how to fix this?</description>
		<content:encoded><![CDATA[<p>This is a fantastic script, works like a treat but I&#8217;m experiencing the same issues as others. I&#8217;ve authenticated the user on intranet home page load and then stored what I need in a session. However as others have reported it stops forms from processing.</p>
<p>I have checked the post array and it&#8217;s empty when using this. Is there any answer of how to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loune</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-9697</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Fri, 22 Apr 2011 12:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-9697</guid>
		<description>@Chris unfortunately I&#039;ve had no experience with mod_auth_sspi. The script I made above is for sites which just want to get NTLM authentication information with PHP. If you&#039;re using mod_auth_sspi, then the above script is not neccessary. From what you&#039;ve written, it sounds like a configuration issue with mod_auth_sspi. It&#039;s probably best to post at the mod_auth_sspi mailing list and see if the devs there can help you.</description>
		<content:encoded><![CDATA[<p>@Chris unfortunately I&#8217;ve had no experience with mod_auth_sspi. The script I made above is for sites which just want to get NTLM authentication information with PHP. If you&#8217;re using mod_auth_sspi, then the above script is not neccessary. From what you&#8217;ve written, it sounds like a configuration issue with mod_auth_sspi. It&#8217;s probably best to post at the mod_auth_sspi mailing list and see if the devs there can help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-9566</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 19 Apr 2011 15:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-9566</guid>
		<description>Hi Loune.  

Many thanks for your response. 

I am using your script in two places one of them is in a directory which has the mod_auth_sspi pointed at it (.\protected\whoami.php) and the other is in the root.

I am using IE6

When accessing the script via IE6 in the root http://localhost/whoami.php i get this error ( Undefined index: REMOTE_USER in C:\wamp\www\whoami.php on line 8
) and when I access the script http://localhost/protected/whoami.php I get my user name, domain name and machine name as expected.

How ever when I access the script http://10.99.99.99/whoami.php i still get this error ( Undefined index: REMOTE_USER in C:\wamp\www\whoami.php on line 8
)  and when I access the script http://10.99.99.99/protected/whoami.php I get an NT Challenge prompt, which, if I fill in the user name part only (with say, the letter &#039;h&#039;) gives the user name as &#039;h&#039; and the correct domain name etc.

What I wish to do is extract the windows user name, domain etc (with out the user having to fill in an NT Challenge prompt). 

Is this some thing to do with the way the Apache web sever is set up as I have done this type of thing numerous times using windows IIS-5 with no NT Challange prompt.

Cheers.

Chris</description>
		<content:encoded><![CDATA[<p>Hi Loune.  </p>
<p>Many thanks for your response. </p>
<p>I am using your script in two places one of them is in a directory which has the mod_auth_sspi pointed at it (.\protected\whoami.php) and the other is in the root.</p>
<p>I am using IE6</p>
<p>When accessing the script via IE6 in the root <a href="http://localhost/whoami.php" rel="nofollow">http://localhost/whoami.php</a> i get this error ( Undefined index: REMOTE_USER in C:\wamp\www\whoami.php on line 8<br />
) and when I access the script <a href="http://localhost/protected/whoami.php" rel="nofollow">http://localhost/protected/whoami.php</a> I get my user name, domain name and machine name as expected.</p>
<p>How ever when I access the script <a href="http://10.99.99.99/whoami.php" rel="nofollow">http://10.99.99.99/whoami.php</a> i still get this error ( Undefined index: REMOTE_USER in C:\wamp\www\whoami.php on line 8<br />
)  and when I access the script <a href="http://10.99.99.99/protected/whoami.php" rel="nofollow">http://10.99.99.99/protected/whoami.php</a> I get an NT Challenge prompt, which, if I fill in the user name part only (with say, the letter &#8216;h&#8217;) gives the user name as &#8216;h&#8217; and the correct domain name etc.</p>
<p>What I wish to do is extract the windows user name, domain etc (with out the user having to fill in an NT Challenge prompt). </p>
<p>Is this some thing to do with the way the Apache web sever is set up as I have done this type of thing numerous times using windows IIS-5 with no NT Challange prompt.</p>
<p>Cheers.</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loune</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-9278</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Wed, 13 Apr 2011 08:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-9278</guid>
		<description>@Chris, what do you mean by protected directory? And which browser are you using? This script is for finding out the username of the current logged on windows user. Is that what you want?</description>
		<content:encoded><![CDATA[<p>@Chris, what do you mean by protected directory? And which browser are you using? This script is for finding out the username of the current logged on windows user. Is that what you want?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-9210</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 11 Apr 2011 16:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-9210</guid>
		<description>Hi Loune

I&#039;m trying this script on an intranet and keep getting the NT Challenge prompt when using a &#039;protected&#039; directory and no user information when using an unprotected directory.  

I am using the latest install of WAMP and have mod_auth_sspi installed working on a single directory - the protected directory.

Any assistance greatefully received!</description>
		<content:encoded><![CDATA[<p>Hi Loune</p>
<p>I&#8217;m trying this script on an intranet and keep getting the NT Challenge prompt when using a &#8216;protected&#8217; directory and no user information when using an unprotected directory.  </p>
<p>I am using the latest install of WAMP and have mod_auth_sspi installed working on a single directory &#8211; the protected directory.</p>
<p>Any assistance greatefully received!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-5718</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 14 Jan 2011 17:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-5718</guid>
		<description>That worked. Thanks for the help.</description>
		<content:encoded><![CDATA[<p>That worked. Thanks for the help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

