<?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>Being Cellfish : PHP</title><link>http://blogs.msdn.com/cellfish/archive/tags/PHP/default.aspx</link><description>Tags: PHP</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Getting the logged on windows user in your apache server</title><link>http://blogs.msdn.com/cellfish/archive/2008/08/26/getting-the-logged-on-windows-user-in-your-apache-server.aspx</link><pubDate>Tue, 26 Aug 2008 08:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8882488</guid><dc:creator>cellfish</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/cellfish/comments/8882488.aspx</comments><wfw:commentRss>http://blogs.msdn.com/cellfish/commentrss.aspx?PostID=8882488</wfw:commentRss><description>&lt;P&gt;&lt;SPAN class=postcolor&gt;I was recently involved in a discussion where a company was developing an intra-net site using Apache and PHP on a Windows server. All clients were windows and they wanted to know who was connecting to the intra-net site (only accessible inside the company firewall). And they wanted&amp;nbsp;a SSO (single sign-on) experience for the users. They refused to switch to IIS and using integrated windows authentication.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postcolor&gt;Since they did not really wanted to authenticate users, just get a hint of who was connecting.&amp;nbsp;&amp;nbsp;So faking a NTLM authentication request and then parsing the data would be enough. And the script for doing so is pretty easy too. &lt;A class="" title=ntlm.php href="http://blogs.msdn.com/cellfish/pages/ntlm-php.aspx" target=_blank mce_href="http://blogs.msdn.com/cellfish/pages/ntlm-php.aspx"&gt;Here is one script&lt;/A&gt; I copied from &lt;A class="" title="Simple lightweight NTLM in PHP" href="http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/" target=_blank mce_href="http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postcolor&gt;&lt;STRONG&gt;&lt;EM&gt;Note&lt;/EM&gt;&lt;/STRONG&gt; that this is nothing you can use to authenticate users since there is no authentication taking place. And the user will, with a standard installed browser&amp;nbsp;be prompted for user name and password and can write anything. The script just prints whatever is sent by the user.&amp;nbsp;And there is also no&amp;nbsp;SSO feel to this. In order to get the SSO feel you have to do one of two things. Either the user must add the site using this script to his "&lt;EM&gt;Trusted Intra-net sites&lt;/EM&gt;" in IE. This is done via Tools-Internet Options-Security. Or the company can add a group policy in the Active Directory enforcing this. For a situation as the described intra-net site, the latter is obviously the best solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postcolor&gt;&lt;A href="http://siphon9.net/loune/f/ntlm.php.txt" target=_blank mce_href="http://siphon9.net/loune/f/ntlm.php.txt"&gt;&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8882488" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/cellfish/archive/tags/PHP/default.aspx">PHP</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Security/default.aspx">Security</category></item><item><title>Selenium the test tool</title><link>http://blogs.msdn.com/cellfish/archive/2008/04/09/selenium-the-test-tool.aspx</link><pubDate>Wed, 09 Apr 2008 21:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373032</guid><dc:creator>cellfish</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/cellfish/comments/8373032.aspx</comments><wfw:commentRss>http://blogs.msdn.com/cellfish/commentrss.aspx?PostID=8373032</wfw:commentRss><description>&lt;P&gt;I almost forgot that before the &lt;A class="" title="BDD and DDD" href="http://blogs.msdn.com/cellfish/archive/2008/04/09/bdd-and-ddd.aspx" mce_href="http://blogs.msdn.com/cellfish/archive/2008/04/09/bdd-and-ddd.aspx"&gt;BDD/DDD presentation&lt;/A&gt;, there was a presentation about &lt;A class="" title="Selenium - the test tool" href="http://en.wikipedia.org/wiki/Selenium_%28software%29" target=_blank mce_href="http://en.wikipedia.org/wiki/Selenium_%28software%29"&gt;Selenium&lt;/A&gt;. I didn't forget it because it was a bad presentation but because the following presentation was so good...&lt;/P&gt;
&lt;P&gt;I've never had any good experiences with tools for automatic testing but I must confess that Selenium looks nice.&amp;nbsp; At least if you want to add regression tests to an existing GUI. And it is a web based GUI. So if those two fact apply to you, you should take a look at Selenium I think.&lt;/P&gt;
&lt;P&gt;Selenium is good at recording actions and create test code. And it creates test code for unit tests frameworks such as NUnit and a whole bunch of other languages such as Python, Java, Ruby, PHP and more. However there seems to be some stability problems at the moment. According to the presenter (I have not found a link to verify this); Google have more than 51000 selenium tests in their projects. 96% of the tests run with no problem, 2% have problems due to confirmed bugs in Selenium and the last 2% are tests failing where the reason&amp;nbsp; is unclear (Selenium vs the code tested). &lt;/P&gt;
&lt;P&gt;This is a common problem I see when I work with open source. Open source applications are typically quite useful and easy to use 99% of the time. But I always tend to end up needing the last percent which is never implemented or have bugs. And the reason for this is usually that no one have bothered to implement the last tricky advanced feature I end up needing. You probably wanna know why I do not sit down and implement that feature and contribute it back to the open source community. Well that is a whole other topic and I will write about that it the near future.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8373032" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/cellfish/archive/tags/PHP/default.aspx">PHP</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Test/default.aspx">Test</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Java/default.aspx">Java</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Ruby/default.aspx">Ruby</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Python/default.aspx">Python</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Open+source/default.aspx">Open source</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/.Net/default.aspx">.Net</category><category domain="http://blogs.msdn.com/cellfish/archive/tags/Tools/default.aspx">Tools</category></item></channel></rss>