<?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: NTLM authentication in PHP &#8211; Now with NTLMv2 hash checking</title>
	<atom:link href="http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/feed/" rel="self" type="application/rss+xml" />
	<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 01:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David C</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-18814</link>
		<dc:creator>David C</dc:creator>
		<pubDate>Mon, 09 Jan 2012 03:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-18814</guid>
		<description>@Loune Thanks a lot for checking this out. I&#039;ve enabled NTLMv2 on my WinXP machine and everything is working now.

Thanks for the great script!</description>
		<content:encoded><![CDATA[<p>@Loune Thanks a lot for checking this out. I&#8217;ve enabled NTLMv2 on my WinXP machine and everything is working now.</p>
<p>Thanks for the great script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loune</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-18731</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Fri, 06 Jan 2012 12:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-18731</guid>
		<description>@David I loaded up an XP machine (was using win7) and was able to replicate your issue. Seems like XP machines send NTLM (v1) by default where as the script expects NTLMv2. You need to force NTLMv2 as per this guide: http://www.imss.caltech.edu/node/396

Not sure if there&#039;s a way to force NTLMv2 from the server side, but I will amend the script to point that out if it gets a NTLM (v1) response from the client.</description>
		<content:encoded><![CDATA[<p>@David I loaded up an XP machine (was using win7) and was able to replicate your issue. Seems like XP machines send NTLM (v1) by default where as the script expects NTLMv2. You need to force NTLMv2 as per this guide: <a href="http://www.imss.caltech.edu/node/396" rel="nofollow">http://www.imss.caltech.edu/node/396</a></p>
<p>Not sure if there&#8217;s a way to force NTLMv2 from the server side, but I will amend the script to point that out if it gets a NTLM (v1) response from the client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David C</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-18718</link>
		<dc:creator>David C</dc:creator>
		<pubDate>Fri, 06 Jan 2012 06:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-18718</guid>
		<description>Thanks Loune for the quick reply. 
I&#039;ve tried my Windows XP workstation: PHP 5.2.8 + IIS 5.1
And a Linux Ubuntu server: PHP 5.3.1 + Apache 2.2.14
With Firefox 8 and IE 8.
Script ntlm.php 1.2 downloaded today.

I am using the PHP framework CodeIgniter, but have tried testing outside the framework with the same problem. Popup comes up (because current Windows credentials didn&#039;t work) and when I type in eg loune/test, the popup keeps coming up. 
I will try again another time, there&#039;s probably something obvious that I&#039;ll see after getting some sleep..

FYI In Windows I got the following error, which I fixed by uncommenting the preceding line:
Message: iconv() [function.iconv]: Detected an incomplete multibyte character in input string
Filename: third_party/ntlm.php
Line Number: 94</description>
		<content:encoded><![CDATA[<p>Thanks Loune for the quick reply.<br />
I&#8217;ve tried my Windows XP workstation: PHP 5.2.8 + IIS 5.1<br />
And a Linux Ubuntu server: PHP 5.3.1 + Apache 2.2.14<br />
With Firefox 8 and IE 8.<br />
Script ntlm.php 1.2 downloaded today.</p>
<p>I am using the PHP framework CodeIgniter, but have tried testing outside the framework with the same problem. Popup comes up (because current Windows credentials didn&#8217;t work) and when I type in eg loune/test, the popup keeps coming up.<br />
I will try again another time, there&#8217;s probably something obvious that I&#8217;ll see after getting some sleep..</p>
<p>FYI In Windows I got the following error, which I fixed by uncommenting the preceding line:<br />
Message: iconv() [function.iconv]: Detected an incomplete multibyte character in input string<br />
Filename: third_party/ntlm.php<br />
Line Number: 94</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loune</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-18708</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Fri, 06 Jan 2012 02:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-18708</guid>
		<description>@David It&#039;s been a while since I looked at this, but as far as I remember the domain doesn&#039;t matter because the server blob hash is generated with the domain provided by the client.

What environment and what versions of software (php, firefox, ie, apache?) are you using in your test? I&#039;ve just tried it with the ntlm.php script with apache 2 on firefox 9 / IE 9 and it works fine (prompt shows up and you enter the username/password in the userdb array).</description>
		<content:encoded><![CDATA[<p>@David It&#8217;s been a while since I looked at this, but as far as I remember the domain doesn&#8217;t matter because the server blob hash is generated with the domain provided by the client.</p>
<p>What environment and what versions of software (php, firefox, ie, apache?) are you using in your test? I&#8217;ve just tried it with the ntlm.php script with apache 2 on firefox 9 / IE 9 and it works fine (prompt shows up and you enter the username/password in the userdb array).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David C</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-18705</link>
		<dc:creator>David C</dc:creator>
		<pubDate>Fri, 06 Jan 2012 01:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-18705</guid>
		<description>I must be missing something, because I simply cannot get this script to authenticate me using FireFox or IE :( 
My $get_ntlm_user_hash_callback is returning the password hash, but the ntlm_verify_hash function produces a different $blobhash to the $clientblobhash.
I noticed that the $domain value is used in $blobhash, even though in an earlier comment you&#039;ve said it shouldn&#039;t have any effect. But every value I try hasn&#039;t helped..
Have spent all morning trying to figure it out, any traps I should be aware of? Thanks.</description>
		<content:encoded><![CDATA[<p>I must be missing something, because I simply cannot get this script to authenticate me using FireFox or IE :(<br />
My $get_ntlm_user_hash_callback is returning the password hash, but the ntlm_verify_hash function produces a different $blobhash to the $clientblobhash.<br />
I noticed that the $domain value is used in $blobhash, even though in an earlier comment you&#8217;ve said it shouldn&#8217;t have any effect. But every value I try hasn&#8217;t helped..<br />
Have spent all morning trying to figure it out, any traps I should be aware of? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shadow</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-11523</link>
		<dc:creator>Shadow</dc:creator>
		<pubDate>Thu, 09 Jun 2011 15:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-11523</guid>
		<description>Great solution. Just for testing purposes, I have hash of my Windows password. How should I write the get_ntlm_user_hash function, to use this hash correctly ? Everything I&#039;ve written isn&#039;t doing the job. Thank you in advance.</description>
		<content:encoded><![CDATA[<p>Great solution. Just for testing purposes, I have hash of my Windows password. How should I write the get_ntlm_user_hash function, to use this hash correctly ? Everything I&#8217;ve written isn&#8217;t doing the job. Thank you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rois Cannon</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-10980</link>
		<dc:creator>Rois Cannon</dc:creator>
		<pubDate>Fri, 27 May 2011 20:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-10980</guid>
		<description>I got NTLM working in Linux/Apache but I also need the same credentials for MS SQL access. (This is on a private LAN.)  Is it even possible to authenticate against AD and then use the same creds in PHP to authenticate MS SQL 2005  (which is also using the same AD) database access?  I&#039;d like to have SSO but I&#039;ll have to pass if I can&#039;t pass through the creds (or extract the password for access) on to authenticate SQL 2005.

Thoughts?</description>
		<content:encoded><![CDATA[<p>I got NTLM working in Linux/Apache but I also need the same credentials for MS SQL access. (This is on a private LAN.)  Is it even possible to authenticate against AD and then use the same creds in PHP to authenticate MS SQL 2005  (which is also using the same AD) database access?  I&#8217;d like to have SSO but I&#8217;ll have to pass if I can&#8217;t pass through the creds (or extract the password for access) on to authenticate SQL 2005.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loune</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-9199</link>
		<dc:creator>Loune</dc:creator>
		<pubDate>Mon, 11 Apr 2011 11:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-9199</guid>
		<description>@peter, not sure what the problem with your JSP code would be. The difference between NTLMv1 and v2 is just with the password hashing and not the message formats. For a simple example of getting the username - see http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/</description>
		<content:encoded><![CDATA[<p>@peter, not sure what the problem with your JSP code would be. The difference between NTLMv1 and v2 is just with the password hashing and not the message formats. For a simple example of getting the username &#8211; see <a href="http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/" rel="nofollow">http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-8892</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 03 Apr 2011 11:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-8892</guid>
		<description>sorry, this was me asking, just wrote in the wrong fields.. :)

&lt;strong&gt;&lt;em&gt;Fixed&lt;/em&gt;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>sorry, this was me asking, just wrote in the wrong fields.. :)</p>
<p><strong><em>Fixed</em></strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://siphon9.net/loune/2009/09/ntlm-authentication-in-php-now-with-ntlmv2-hash-checking/comment-page-1/#comment-8889</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 03 Apr 2011 10:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://siphon9.net/loune/?p=68#comment-8889</guid>
		<description>no, I&#039;m looking for the username... I have a piece of code (jsp) that works with NTLMv1, but not with v2... I thought the difference is the hashing....  But if it&#039;s not, what is? Thanks!</description>
		<content:encoded><![CDATA[<p>no, I&#8217;m looking for the username&#8230; I have a piece of code (jsp) that works with NTLMv1, but not with v2&#8230; I thought the difference is the hashing&#8230;.  But if it&#8217;s not, what is? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

