<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx</link><description>&amp;lt;?php

// This a copy taken 2008-08-21 from http://siphon9.net/loune/f/ntlm.php.txt to make sure the code is not lost.
// For more information see:
// http://blogs.msdn.com/cellfish/archive/2008/08/26/getting-the-logged-on-windows-user-in-your</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#10342065</link><pubDate>Tue, 21 Aug 2012 18:00:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10342065</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;This is great! &amp;nbsp;Being looking for this for a while!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10342065" width="1" height="1"&gt;</description></item><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#10246314</link><pubDate>Sat, 10 Dec 2011 07:14:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10246314</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;Kris, this is a pretty old post and I do not have the possibility to test this. Please post a comment if you figure out what is wrong.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10246314" width="1" height="1"&gt;</description></item><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#10246267</link><pubDate>Fri, 09 Dec 2011 23:56:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10246267</guid><dc:creator>Kris</dc:creator><description>&lt;p&gt;This code doesn&amp;#39;t seem to work with Apache mod_auth_sspi on Windows (PHP 5.3.8). &amp;nbsp;It passes all the ifchecks and grabs the correct authorization header, but it username/domain just return NULL. &amp;nbsp;I.e. it ends up saying &amp;quot;You are from .&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10246267" width="1" height="1"&gt;</description></item><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#10243466</link><pubDate>Thu, 01 Dec 2011 19:28:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10243466</guid><dc:creator>smudge</dc:creator><description>&lt;p&gt;Been looking for something that did this all day, THIS is exactly what I was looking for and it worked first time, thank you !!!! :D&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10243466" width="1" height="1"&gt;</description></item><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#9129912</link><pubDate>Thu, 20 Nov 2008 21:22:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9129912</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;That is correct SS and exactly what the linked article says. If you want to actually validate the windows users from your LAMP setup you have to do something else like looking up the users using LDAP.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9129912" width="1" height="1"&gt;</description></item><item><title>re: ntlm.php</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#9129516</link><pubDate>Thu, 20 Nov 2008 19:10:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9129516</guid><dc:creator>SS</dc:creator><description>&lt;p&gt;but this code is not validating the username and password against the windows logged on username.&lt;/p&gt;
&lt;p&gt;That is in my case , I don't want the user to get into my webpage if he is not a windows valid user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9129516" width="1" height="1"&gt;</description></item><item><title>Getting the logged on windows user in your apache server</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/08/26/ntlm-php.aspx#8896205</link><pubDate>Tue, 26 Aug 2008 08:35:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8896205</guid><dc:creator>Being Cellfish</dc:creator><description>&lt;p&gt;I was recently involved in a discussion where a company was developing an intra-net site using Apache&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8896205" width="1" height="1"&gt;</description></item></channel></rss>