<?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>Tue, 22 Jun 2010 22:50:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adithya</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-803</link>
		<dc:creator>Adithya</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-803</guid>
		<description>Thanks Man, very very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks Man, very very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ira</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-552</link>
		<dc:creator>Ira</dc:creator>
		<pubDate>Tue, 03 Nov 2009 18:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-552</guid>
		<description>David:

I had the same problem with it causing the post data to be empty, and I spent all day trying to figure out a solution. We solved the problem by simply adding that same code(posted by Loune) into every php file that is doing the &quot;$variable = $_POST[&#039;name&#039;].&quot;</description>
		<content:encoded><![CDATA[<p>David:</p>
<p>I had the same problem with it causing the post data to be empty, and I spent all day trying to figure out a solution. We solved the problem by simply adding that same code(posted by Loune) into every php file that is doing the &#8220;$variable = $_POST['name'].&#8221;</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-549</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Mon, 05 Oct 2009 08:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-549</guid>
		<description>Here&#039;s my example code: http://siphon9.net/loune/f/ntlm_post_test.php.txt</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my example code: <a href="http://siphon9.net/loune/f/ntlm_post_test.php.txt" rel="nofollow">http://siphon9.net/loune/f/ntlm_post_test.php.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-548</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 05 Oct 2009 04:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-548</guid>
		<description>Yeah that&#039;s be nice. I wasn&#039;t using a cookie until suggested it (there wasn&#039;t much of interest that I could put in the cookie before this authentication snippet) so I doubt it is a problem with a cookie. 

Strange thing is it *does* work for Firefox, not a single problem. The problems occur mainly in IE7 &amp; IE8 (though occasionally IE8 works but without any changes, deletions or anything stops working).

Now as much as I would LOVE to roll out FF3 within the company the directors would have an absolute heart attack as it can&#039;t be simply managed from a central location.... Hey hang on, now there is an opportunity for a KICKASS addon and an server app to manage it, might boost adoption, but I digress...</description>
		<content:encoded><![CDATA[<p>Yeah that&#8217;s be nice. I wasn&#8217;t using a cookie until suggested it (there wasn&#8217;t much of interest that I could put in the cookie before this authentication snippet) so I doubt it is a problem with a cookie. </p>
<p>Strange thing is it *does* work for Firefox, not a single problem. The problems occur mainly in IE7 &amp; IE8 (though occasionally IE8 works but without any changes, deletions or anything stops working).</p>
<p>Now as much as I would LOVE to roll out FF3 within the company the directors would have an absolute heart attack as it can&#8217;t be simply managed from a central location&#8230;. Hey hang on, now there is an opportunity for a KICKASS addon and an server app to manage it, might boost adoption, but I digress&#8230;</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-547</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Sat, 03 Oct 2009 02:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-547</guid>
		<description>I&#039;ve just quickly mocked up an example and it works fine. There was a mistake in my original snippet in that $username variable should really just be named $user as per my ntlm code. I&#039;ve fixed that now.

My testing was in firefox 3.0 and IE8. Could it be some quirk or setting with your browser regarding cookies? I can post my example up if you want.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just quickly mocked up an example and it works fine. There was a mistake in my original snippet in that $username variable should really just be named $user as per my ntlm code. I&#8217;ve fixed that now.</p>
<p>My testing was in firefox 3.0 and IE8. Could it be some quirk or setting with your browser regarding cookies? I can post my example up if you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-546</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 01 Oct 2009 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-546</guid>
		<description>Nope, still not working. 

Well.... it *sorta* works. Once the cookie has been set and you close and reopen the browser then the post forms work. I am guessing this is due to the authentication being skipped as $username is not empty.

Really, REALLY baffling! ---- Ohhh look! A grey hair... YAY!</description>
		<content:encoded><![CDATA[<p>Nope, still not working. </p>
<p>Well&#8230;. it *sorta* works. Once the cookie has been set and you close and reopen the browser then the post forms work. I am guessing this is due to the authentication being skipped as $username is not empty.</p>
<p>Really, REALLY baffling! &#8212;- Ohhh look! A grey hair&#8230; YAY!</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-545</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-545</guid>
		<description>This is probably due to the 3-way handshake (negotiate, challenge, response) the ntlm script performs. A post would be eaten up by the negotiate step. Ideally you should only ntlm authenticate the first time in a browser session and after that, you set a cookie and don&#039;t ntlm authenticate until the next session ie:

$user = $_COOKIE[&#039;username&#039;];
if (empty($user)) {
// the ntlm.php stuff
// straight after print &quot;You are $user..., add:
setcookie(&#039;username&#039;, $user);
}

This would work provided that the user has cookies enabled and that your first request in that session isn&#039;t a post.</description>
		<content:encoded><![CDATA[<p>This is probably due to the 3-way handshake (negotiate, challenge, response) the ntlm script performs. A post would be eaten up by the negotiate step. Ideally you should only ntlm authenticate the first time in a browser session and after that, you set a cookie and don&#8217;t ntlm authenticate until the next session ie:</p>
<p>$user = $_COOKIE['username'];<br />
if (empty($user)) {<br />
// the ntlm.php stuff<br />
// straight after print &#8220;You are $user&#8230;, add:<br />
setcookie(&#8216;username&#8217;, $user);<br />
}</p>
<p>This would work provided that the user has cookies enabled and that your first request in that session isn&#8217;t a post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-544</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 01 Oct 2009 11:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-544</guid>
		<description>I wanted to use this for our Intranet, not for authentication but to personalise the site for our users. So the hash check would sorta be over kill. This lightweight version works perfect... and here&#039;s the but...

BUT, all forms on the intranet that are set to method=&quot;post&quot; stop working and the $_POST array is totally empty. This is not the case for form set as method=&quot;get&quot;.

As soon as I disable the ntlm authorisation all the forms are working again. Odd thing is that some of these forms are located in pages within a different directory even i.e. ntlm auth happens on index.php and subsequently a form located in /admin/docmanager.php stops working.

I am at wits end on this one and have scoured Google from end to end for a solution.... Any thoughts?

P.S. This even happens on a fresh install of LAMP.</description>
		<content:encoded><![CDATA[<p>I wanted to use this for our Intranet, not for authentication but to personalise the site for our users. So the hash check would sorta be over kill. This lightweight version works perfect&#8230; and here&#8217;s the but&#8230;</p>
<p>BUT, all forms on the intranet that are set to method=&#8221;post&#8221; stop working and the $_POST array is totally empty. This is not the case for form set as method=&#8221;get&#8221;.</p>
<p>As soon as I disable the ntlm authorisation all the forms are working again. Odd thing is that some of these forms are located in pages within a different directory even i.e. ntlm auth happens on index.php and subsequently a form located in /admin/docmanager.php stops working.</p>
<p>I am at wits end on this one and have scoured Google from end to end for a solution&#8230;. Any thoughts?</p>
<p>P.S. This even happens on a fresh install of LAMP.</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-541</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Sun, 20 Sep 2009 12:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-541</guid>
		<description>@Gary - you&#039;re right $msg2 is missing 3 bytes, it&#039;s now fixed.

@Eric Z - See the new php ntlm library with hash checking:
http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/</description>
		<content:encoded><![CDATA[<p>@Gary &#8211; you&#8217;re right $msg2 is missing 3 bytes, it&#8217;s now fixed.</p>
<p>@Eric Z &#8211; See the new php ntlm library with hash checking:<br />
<a href="http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/" rel="nofollow">http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Z</title>
		<link>http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/comment-page-1/#comment-537</link>
		<dc:creator>Eric Z</dc:creator>
		<pubDate>Wed, 12 Aug 2009 01:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/#comment-537</guid>
		<description>Cool function, Did you ever figure out that hash check version?</description>
		<content:encoded><![CDATA[<p>Cool function, Did you ever figure out that hash check version?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
