<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sunsetsurf Techblog</title>
	<atom:link href="http://techblog.sunsetsurf.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.sunsetsurf.co.uk</link>
	<description>Random tech bloggidge</description>
	<lastBuildDate>Wed, 18 Aug 2010 10:48:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>VMWare ESX 4.0 iscsi volume problems.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 10:48:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=166</guid>
		<description><![CDATA[We recently encountered a problem which nearly ground  our VMWare ESX farm to a halt. The cause of the problem was a iscsi lock caused by 2 hosts trying to write to the same store at the same time. This was evident from messages on the ESX hosts from the error message: vprob.vmfs.heartbeat.timedout and referencing [...]]]></description>
			<content:encoded><![CDATA[<p>We recently encountered a problem which nearly ground  our VMWare ESX farm to a halt.</p>
<p>The cause of the problem was a iscsi lock caused by 2 hosts trying to write to the same store at the same time.</p>
<p>This was evident from messages on the ESX hosts from the error message: vprob.vmfs.heartbeat.timedout and referencing one of the volumes on our ISCSI storage.</p>
<p>This was causing the entire ESX host to have connectivity problems as well as affecting the guests that resided on that volume.</p>
<p>Because the host and guests were not accesible through vSphere, we were unable to remove the volume or power cycle the guests.</p>
<p>After much digging around and with the help of VMWare support we understood that the cause of the problem was a lock on that filesystem, and to fix the problem we ran vmkfstools -L lunreset /vmfs/devices/disks/volumename&#8230;</p>
<p>This removed the lock which was caused by 2 hosts trying to write to the same volume at the same time and causing a iscsi lock.</p>
<p>Very painful, but happy to have the cluster back up and running.</p>
<p><map name='google_ad_map_166_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/166?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_166_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=166&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F08%2Fvmware-esx-4-0-iscsi-volume-problems%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 13 Network interface alias problems</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/08/fedora-13-network-interface-alias-problems/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/08/fedora-13-network-interface-alias-problems/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 10:43:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=162</guid>
		<description><![CDATA[Perhaps everyone knows this, but its not something I have come across before. I recently built a fedora 13 server without any of the X / Gnome / KDE parts as I only want command line on it &#8211; this is relativly normal for what I do, however I normally use kickstart scripts, but as [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps everyone knows this, but its not something I have come across before.</p>
<p>I recently built a fedora 13 server without any of the X / Gnome / KDE parts as I only want command line on it &#8211; this is relativly normal for what I do, however I normally use kickstart scripts, but as it was my first jaunt into 13 I didnt.</p>
<p>Its common for me to set up interface aliases as I use apache and a number of sites with SSL which requires independant IP addresses.</p>
<p>Normally I create a interface aliase file in /etc/sysconfig/network-scripts to the figure of ifcfg-eth0:0 etc..</p>
<p>Doing this in FC13 and then trying to bring the interface up threw up the following error</p>
<div id="_mcePaste">Bringing up interface eth0:</div>
<div id="_mcePaste">** (process:3898): WARNING **: fetch_connections_done: error fetching user connections: (2) The name org.freedesktop.NetworkManagerUserSettings was not provided by any .service files.</div>
<p>Bringing up interface eth0:  ** (process:3898): WARNING **: fetch_connections_done: error fetching user connections: (2) The name org.freedesktop.NetworkManagerUserSettings was not provided by any .service files.</p>
<p>As I mentioned I have configured aliases lots so was confused as to exactly what was causing my problem &#8211; however the clue was in the error message &#8211; as it normally is..</p>
<p>The NetworkManager service was running which I dont use and this was preventing my alias&#8217;s from working properly. So a quick pkill -9 NetworkManager and then removing it from rc3.d to stop it starting up again fixed all my issues.</p>
<p>I guess thats what happens when you script build all the time &#8211; you forget these little bits <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><map name='google_ad_map_162_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/162?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_162_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=162&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F08%2Ffedora-13-network-interface-alias-problems%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/08/fedora-13-network-interface-alias-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the user IIS runs as Windows 2008 IIS 7.5</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:55:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=158</guid>
		<description><![CDATA[Back in the (good?) old days, it was easy to change the user IIS ran as through the services console you could pick anyone you wanted. You might need to do this for a variety of reasons, access to remote services, file systems or for other reasons. However with windows 2008 and IIS 7 / [...]]]></description>
			<content:encoded><![CDATA[<p>Back in the (good?) old days, it was easy to change the user IIS ran as through the services console you could pick anyone you wanted.</p>
<p>You might need to do this for a variety of reasons, access to remote services, file systems or for other reasons.</p>
<p>However with windows 2008 and IIS 7 / 7.5 you can no longer run the World Wide Web service as a different user without a whole world of pain..</p>
<p>For most people there is a fairly simple way to resolve this &#8211; in IIS 7.5 now the ApplicationPools are what fire up the specific workers for the w3wp process, and as such its very simple to change the user that the w3wp process runs as.</p>
<p>Open IIS management console and expand your website tree.</p>
<p>Click on Application Pools, and in the right hand pane you should see the DefaultAppPool &#8211; you will also see the user or Identidy that this is currently running as.</p>
<p>To change this to a different user simply right click the DefaultAppPool and select Advanced settings, then under the process model section click the identity name and click the elipses (the 3 dots) you will then be prompted which user account you wish to use.</p>
<p>If you want to use IIS to pass authentication through to a non domain machine then still in advanced settings you will also need to change the option for LoadProfile to true &#8211; this allows you to pull the credentials that get cached in cmdkey should you need it (see my other post on cmdkey).</p>
<p>Once you have done this, right click the DefaultAppPool and choose recycle for good measure which restarts the w3wp process.</p>
<p>You should now see it in task manager process list running as your defined user, and hopefully have access to all the resources you needed.</p>
<p><map name='google_ad_map_158_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/158?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_158_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=158&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F07%2Fchanging-the-user-iis-runs-as-windows-2008-iis-7-5%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authenticating against a domain cifs share from a non domain server in IIS7.5 2008</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:20:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=155</guid>
		<description><![CDATA[Its generally good practice security wise if possible to keep public facing web servers either out of your AD domain, or have them in their own domain. For me I encountered a problem where I have a non domain server running an .NET application which needed to write files to a cifs share which was [...]]]></description>
			<content:encoded><![CDATA[<p>Its generally good practice security wise if possible to keep public facing web servers either out of your AD domain, or have them in their own domain.</p>
<p>For me I encountered a problem where I have a non domain server running an .NET application which needed to write files to a cifs share which was using domain authentication.</p>
<p>This was a problem initially as the default application pool runs as a local builtin account and therefore has no permissions on the remote cifs share, however, I decided that I would be happy enough creating a user which mirrored a domain user by name and password, and hope that pass through authentication would work.</p>
<p>It didnt <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>So after lots of digging and gnashing of teeth, a colleague of mine found the perfect solution.</p>
<p>In windows 2008 there is a command called cmdkey which allows you to use a local account to cache domain user account credentials for a specific target domain / server.</p>
<p>So in my instance running a dos prompt as my new user, I did a cmdkey /add:cifsserver /user:domainname\username pass:domainuserpass</p>
<p>And bingo everything now works a treat!</p>
<p><map name='google_ad_map_155_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/155?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_155_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=155&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F07%2Fauthenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>troubleshooting activesync with exchange 2003 for iPhones</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 11:42:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=152</guid>
		<description><![CDATA[Firstly, you need to make sure that you have Exchange Server 2003 Service Pack 2 Installed. To check if you have it installed, open up Exchange System Manager &#8211; Start, Programs, Microsoft Exchange, System Manager. Then expand Servers, Right-Click your server and choose Properties. This will display whether you have SP2 installed or not. If [...]]]></description>
			<content:encoded><![CDATA[<p>Firstly, you need to make sure that you have Exchange Server 2003 Service Pack 2 Installed. To check if you have it installed, open up Exchange System Manager &#8211; Start, Programs, Microsoft Exchange, System Manager. Then expand Servers, Right-Click your server and choose Properties. This will display whether you have SP2 installed or not. If you do not have SP2 installed you can download it here – <a rel="nofollow" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=535BEF85-3096-45F8-AA43-60F1F58B3C40&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=535BEF85-3096-45F8-AA43-60F1F58B3C40&amp;displaylang=en<br />
</a><br />
You also need to ensure that TCP Port 443 is open and forwarded on your firewall to your Exchange server. You don&#8217;t need to open up any other ports to get Activesync working, just TCP port 443.</p>
<p>Please check the LAN Adapter Binding order to make sure the NIC that Exchange is bound to is at the top of the list (Start&gt; Run&gt; [type] ncpa.cpl [press enter]&gt; Advanced&gt; Advanced Settings&gt; Connections).</p>
<p>Please check and mirror the settings below (Open up IIS, expand the default website then expand the relevant Virtual Directory, right-click on the Virtual Directory and choose properties, then click on the Directory Security Tab):</p>
<p>Exchange 2003 (Not part of Small Business Server):</p>
<p>Exchange Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NetBIOS domain name &#8211; e.g., yourcompany (no more than 15 characters)<br />
• Realm = yourcompany.com<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL NOT ticked (very important)</p>
<p>Microsoft-Server-Activesync Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany (no more than 15 characters)<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption IS ticked</p>
<p>Exchange 2003 (Part of Small Business Server):</p>
<p>Exchange Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NetBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = yourcompany.com<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL IS ticked (very important)</p>
<p>Microsoft-Server-Activesync Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>Exchange-oma Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Restricted to IP Address of Server<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>OMA Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>ASP.NET should be set to version 1.1 for all virtual directories listed above. If you cannot see the ASP.NET tab, you only have v 1.1 installed so do not worry. If any version other than 1.1 is selected, please change it to v 1.1.4322.</p>
<p>No other virtual directories are involved when using Activesync &#8211; despite having seen other postings suggesting that there are.</p>
<p>Also, make sure that you have HTTP Keep-Alives enabled -<a rel="nofollow" href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d7e13ea5-4350-497e-ba34-b25c0e9efd68.mspx?mfr=true" target="_blank">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d7e13ea5-4350-497e-ba34-b25c0e9efd68.mspx?mfr=true<br />
</a><br />
Please also check that Ignore Client Certificates is selected under the IISADMPWD virtual directory / Directory Security Tab / Edit Secure Communications Button. This Virtual Directory may not exist if you have not setup the ability to reset passwords via Outlook Web Access (OWA).</p>
<p>For Small Business Server 2003 Users &#8211; please check this MS article -<a rel="nofollow" href="http://support.microsoft.com/kb/937635" target="_blank">http://support.microsoft.com/kb/937635<br />
</a><br />
Make sure that the name on the SSL certificate you have installed matches the Fully Qualified Domain Name (FQDN) that you are connecting to for ActiveSync &#8211; for example, mail.microsoft.com. If it does not match, either re-issue the certificate if you created it yourself, or re-key the certificate from your SSL certificate provider.</p>
<p>Activesync is much easier to get working with a purchased SSL certificate (installed on the default website but you can generate your own and still make it work). GoDaddy seem to be offering the cheapest SSL certificates (at the time of writing this article).</p>
<p>Ensure that the IP for the Default Website is set to All Unassigned and using port 80 (open up IIS, Right-Click the Default Website). If your default website is using any port other than port 80, it simply will not work, so if you have changed this to make something else work, either change it back to port 80 or stop trying to use Activesync!</p>
<p>If you make any changes to IIS, you will need to reset IIS settings. Please click on Start, Run and type IISRESET then press enter.</p>
<p>Testing:</p>
<p>If you have got SP2 installed, check on <a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com</a> to see if everything is working properly by running the Exchange Activesync check. The site is an official Microsoft site specifically for testing Exchange installations and connectivity.</p>
<p>Please select ‘Specify Manual Server Settings’ (Exchange 2003 does not have native Autodiscover enabled so using the Autodiscover settings will fail).</p>
<p>3rd Party SSL Certificate:</p>
<p>Do not check the “Ignore Trust for SSL” check box</p>
<p>Self-Certified SSL Certificate:</p>
<p>Check the &#8220;Ignore Trust for SSL&#8221; checkbox.</p>
<p>If you are trying to make an iPhone work, then you can also download the free iPhone App &#8216;Activesync Tester&#8217; and this should identify any problems with your configuration, or download the version for your PC from <a rel="nofollow" href="https://store.accessmylan.com/main/diagnostic-tools" target="_blank">https://store.accessmylan.com/main/diagnostic-tools<br />
</a><br />
Various Activesync Errors / Solutions:</p>
<p>If you make any changes to IIS settings, please run IISRESET and re-visit<a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com<br />
</a><br />
Activesync Error 0&#215;86000108:<br />
Activesync is unsuccessful and you see the error 0&#215;86000108 on your Windows Mobile Device:<br />
Please read the following MS Article which checks that Authenticated Users has write permissions to the %TEMP% directory (usually c:\windows\temp) –<a rel="nofollow" href="http://support.microsoft.com/kb/950796/en-us" target="_blank">http://support.microsoft.com/kb/950796/en-us<br />
</a><br />
Application Event Log 3005 Errors:<br />
A lot of 3005 errors can be resolved by changing the Default Website Timeout value from 120 (default) to something greater, such as 480 using IIS Manager.</p>
<p>Inconsistent Sync:<br />
If you are getting inconsistent Synchronisation from your device to your Exchange 2003 server, please add the following registry key to the server:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\VirusScan<br />
ProactiveScanning REG_DWORD 1</p>
<p>HTTP 401 Error:<br />
If you are getting an HTTP 401 error when testing on <a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com</a> then you are probably entering an incorrect username or password, or you may have IP Address restrictions setup on your virtual directories (see IIS Settings above under prerequisites).</p>
<p>HTTP 403 Error:<br />
Ensure that Forms Based Authentication is NOT turned on under Exchange Virtual Server under Exchange Protocols (Exchange System Manager, Servers, Protocols, HTTP, Exchange Virtual Server properties, Settings Tab). If it is &#8212; read <a rel="nofollow" href="http://support.microsoft.com/kb/817379" target="_blank">http://support.microsoft.com/kb/817379<br />
</a><br />
I have had Activesync work despite seeing &#8220;An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body is: HTTP/1.1 403 Forbidden&#8221; at the end of the test above. To resolve this (if you like things tidy), please open up Exchange System Manager, Global Settings, Mobile Services Properties, Device Security Button, Exceptions Button, then add your account to the exceptions list.</p>
<p>HTTP 500 Error:<br />
If you still cannot get Activesync to work or keep getting an HTTP 500 error, please follow Method 2 in Microsoft Knowledgebase Article KB883380 (http://support.microsoft.com/kb/883380) and this should resolve the issues. This essentially deletes the Exchange Virtual Directories from the IIS Metabase (which can be corrupted) and rebuilds them. Rebuilding those virtual directories often clears up problems that all the other steps above do not resolve.</p>
<p>If, after following KB 883380, Activesync still does not work and it keeps coming up with HTTP 500 errors, please do the following:</p>
<p>• Disable Forms Based Authentication &#8211; Exchange HTTP Protocol (if enabled)<br />
• Remove SSL settings from the Exchange IIS virtual directory<br />
• Run iisreset<br />
• Test Activesync without SSL selected &#8211; hopefully this should work or give the OK result<br />
• If okay &#8211; right-click on the Exchange Virtual Directory and select all Tasks&gt; Save Configuration to a file. Name the file Exchange and save to the desktop<br />
• Run Regedit (and be extremely careful here as you can kill your server very easily) then right-click on My Computer and select Export. Name the file as &#8216;EntireRegistry&#8217; and save the backup of the registry to the desktop<br />
• In regedit &#8211; locate HKLM \ System \ CurrentControlSet \ Services \ MasSync \ Parameters and delete the ExchangeVDir key from the right-hand pane.<br />
• Close Regedit<br />
• Right-click on the default-website and select New&gt; Virtual Directory fom File. Browse to the desktop and click on the Exchange.xml that you created above, then click on Read file, select Exchange from the &#8216;Select a configuration to import&#8217; section and click on OK. Select &#8216;Create a new virtual Directory&#8217; and name the directory &#8216;exchange-oma&#8217; and click OK.<br />
• Right-click on Exchange-OMA virtual directory you just created and click Browse &#8211; you should see OWA open up happily<br />
• Open Regedit and add the ExchangeVDir key back that you recently deleted as a String Value and then change the value to read /exchange-oma<br />
• Close regedit<br />
• Enable SSL and require 128-Bit Encryption on the Exchange Virtual Directory to ensure it is secure once again<br />
• Enable Forms Based Authentication (if you want to use it) on Exchange &gt; Protocols&gt; HTTP<br />
• Make sure that Integrated Authentication is enabled on the Exchange Virtual Directory<br />
• Check that the Exchweb virtual directory does not have SSL enabled<br />
• Run iisreset<br />
• Test Activesync &#8211; should hopefully be working now</p>
<p>Hopefully if you are now at the bottom of my article, your mobile phones should now be synchronising happily. If that is not the case, please review your IIS Settings carefully and start at the top of this article again.</p>
<p><map name='google_ad_map_152_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/152?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_152_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=152&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F06%2Ftroubleshooting-activesync-with-exchange-2003-for-iphones%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone slow to wake / slide to unlock &#8211; three network</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 11:50:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=150</guid>
		<description><![CDATA[I have a fully unlocked iPhone and use it with a three contract sim card&#8230; From time to time, especially at home, ive been experiencing problems where pressing the home button takes ages for my phone to actually wake up, and then often when it does wake up, the slide to unlock screen is frozen, [...]]]></description>
			<content:encoded><![CDATA[<p>I have a fully unlocked iPhone and use it with a three contract sim card&#8230;</p>
<p>From time to time, especially at home, ive been experiencing problems where pressing the home button takes ages for my phone to actually wake up, and then often when it does wake up, the slide to unlock screen is frozen, and I have to wait longer before I can actually slide and unlock.</p>
<p>Ive tried loads of things to try to figure this out, I am jailbroken, so wondered if it was that that caused the problems, but after putting the phone into flight mode, the problem went away..</p>
<p>After some digging around, I tried manually selecting my carrier &#8211; specifically the 3 3g one. Whilst this is far from ideal as it locks me to three&#8217;s 3g network, which means that should I go outside of that I will not automatically fall back onto the 2g infrastructure, it does seem to have sorted my problem.</p>
<p>More digging and reading suggests that when the phone switches from 3g to 2g, it can some times be a slow and painful process, and especially so with three&#8217;s network, as it seems they utilise other peoples 2g infrastructure, which would explain why I dont see this problem with a vodafone iPhone.</p>
<p>So if you are on three, it might be worth trying this, but remember you are likely to get more No Service messages if you go outside of a covered area and will need to manually either select automatic to get it back, or manually chose an alternative compatible carrier.</p>
<p><map name='google_ad_map_150_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/150?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_150_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=150&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F03%2Fiphone-slow-to-wake-slide-to-unlock-three-network%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setting up replication with mysql &#8211; slave / master</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/03/setting-up-replication-with-mysql-slave-master/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/03/setting-up-replication-with-mysql-slave-master/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 11:43:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=147</guid>
		<description><![CDATA[Whilst the mysql cluster option is useful for a HA / scalable solution, sometimes the &#8220;old&#8221; mysql config of having a master node, with one or more slave nodes is actually the most idea option. Using a mysql cluster configuration allows you to add nodes simply and increase the power available to you simply, its [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst the mysql cluster option is useful for a HA / scalable solution, sometimes the &#8220;old&#8221; mysql config of having a master node, with one or more slave nodes is actually the most idea option.</p>
<p>Using a mysql cluster configuration allows you to add nodes simply and increase the power available to you simply, its quite a involved solution with multiple nodes required as well as controller stations, added with the fact that you need the cluster nodes to be on a low latency link means it might not fit the requirement.</p>
<p>Using the master slave option is great if you dont need a massive amount of writes, if you want to replicate between sites, or if you just want a quick solution to provide you with a resilient platform (albeit not instant)</p>
<p>So to setting up the solution.</p>
<p>You need at least 2 nodes running ideally the same version of mysql and the master node needs port 3306 access to the slave / slaves.</p>
<p>Once you have set that up, you need to configure the master to push updates out to the slave, you also need to ensure that from a starting point, both the slave and the master have the same db&#8217;s etc..</p>
<p>So below are the steps you need to take to do this:</p>
<p>Edit the my.cnf on your master under the mysqld section with the follow (assuming you have a standard install and things are in the default location, adjust paths if required) :</p>
<p>server-id=1</p>
<p>relay-log=/usr/local/mysql/var/mysql-relay-bin</p>
<p>relay-log-index=/usr/local/mysql/var/mysql-relay-bin.index</p>
<p>log-error=/usr/local/mysql/var/mysql.err</p>
<p>master-info-file=/usr/local/mysql/var/mysql-master.info</p>
<p>relay-log-info-file=/usr/local/mysql/var/mysql-relay-log.info</p>
<p>datadir=/usr/local/mysql/var</p>
<p>log-bin=/usr/local/myql/var/mysql-bin</p>
<p>Now put the following in your slaves my.cnf</p>
<p>server-id=2</p>
<p>relay-log=/usr/local/mysql/var/mysql-relay-bin</p>
<p>relay-log-index=/usr/local/mysql/var/mysql-relay-bin.index</p>
<p>log-error=/usr/local/mysql/var/mysql.err</p>
<p>master-info-file=/usr/local/mysql/var/mysql-master.info</p>
<p>relay-log-info-file=/usr/local/mysql/var/mysql-relay-log.info</p>
<p>datadir=/usr/local/mysql/var</p>
<p>Now the configs are done, you need to sort out the users and permissions.</p>
<p>On the master you need to create a user that has permissions on the slave, do this as follows:</p>
<p>mysql&gt; grant replication slave on *.* to useronslave@&#8217;slaves.ip.add.ress&#8217; identified by &#8216;useronslavepassword&#8217;;</p>
<p>Obviously substituting useronslave for your actual username on the slave, slaves.ip.add.ress for your slaves ip, i.e 192.168.0.3 and your useronslavepassword for your slave users password.</p>
<p>Now export the database from your master to your slave, to initially create the sync, as below:</p>
<p>mysqldump -u root -p &#8211;all-databases &#8211;single-transaction &#8211;master-data=1 &gt; masterdump.sql</p>
<p>Next copy this .sql file over to the slave and import it so the slave is now in sync, as below run this on the slave:</p>
<p>mysql -u root -p &lt; masterdump.sql</p>
<p>Once the above dump import has finished you will need to tell the slave which master to connect to, do the following, again substituting users and passwords as appropriate (again done on the slave).</p>
<p>mysql&gt; CHANGE MASTER TO MASTER_HOST=&#8217;ip.address.of.master&#8217;, MASTER_USER=&#8217;useronslave&#8217;, MASTER_PASSWORD=&#8217;useronslavepassword&#8217;;</p>
<p>once that is done start up the slave</p>
<p>mysql&gt; start slave;</p>
<p>if you want to see the status of the slave, type</p>
<p>mysql&gt; show slave status\G</p>
<p>That should be everything done, you should now have your master and slave in sync and updating themselves as required.</p>
<p><map name='google_ad_map_147_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/147?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_147_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=147&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F03%2Fsetting-up-replication-with-mysql-slave-master%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/03/setting-up-replication-with-mysql-slave-master/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase your iPhone battery life &#8211; a few tips.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:50:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=145</guid>
		<description><![CDATA[Well like everyone out there I want my iPhone battery to last forever &#8211; i unfortunately upgraded to firmware 3.1.3 and while I dont need a baseband unlock because my phone isn&#8217;t locked, I did want a jailbreak. All this aside, I found that as soon as I had upgraded, my battery life was a [...]]]></description>
			<content:encoded><![CDATA[<p>Well like everyone out there I want my iPhone battery to last forever &#8211; i unfortunately upgraded to firmware 3.1.3 and while I dont need a baseband unlock because my phone isn&#8217;t locked, I did want a jailbreak. All this aside, I found that as soon as I had upgraded, my battery life was a quarter worse than before.</p>
<p>I used to get pretty much 2 days use out of a full charge &#8211; I dont use the phone loads, just normal texting, a few phone calls and a bit of facebook / twittering, but after the 3.1.3 firmware upgrade, I immediately found I was getting only a days worth of battery life <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Wasn&#8217;t happy especially as apple stopped me from downgrading to 3.1.2 which was nice and lovely.</p>
<p>So to help me get the best of what I had I made 2 changes which made a big difference and have resulted in me getting my 2 days usage back, and maybe even a bit more.</p>
<p>1: Disable location services &#8211; Go into settings &gt; general, and change location services to off.</p>
<p>This does mean you no longer have your GPS active, but if you like me only use this infrequently, i&#8217;d rather switch it on in the odd occasion I do use it, than have it sucking my battery away.</p>
<p>2: Disable wi-fi scanning &#8211; Go into settings &gt; wi-fi and change Ask to Join Networks to off. This means that rather than constantly scanning for available wi-fi networks, it will only use the ones you have pre-configured. Should you want to connect to a new network, you can either switch this back on or go back into settings &gt; wi-fi and pick it from the list or add it manually. Again this saves loads of battery time as the wi-fi is not scanning.</p>
<p>These 2 simple tips made a big difference to mine and a few friends iPhone life, hope it helps you too.</p>
<p><map name='google_ad_map_145_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/145?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_145_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=145&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F02%2Fhow-to-increase-your-iphone-battery-life-a-few-tips%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare ESX4 guests loosing network connectivity briefly.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/02/vmware-esx4-guests-loosing-network-connectivity-briefly/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/02/vmware-esx4-guests-loosing-network-connectivity-briefly/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:08:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=141</guid>
		<description><![CDATA[Came across a very odd issue lately where guests on one of our ESX4 hosts were periodically loosing network connectivity very briefly &#8211; maybe 10 ICMP packets every half hour or hour. After much debugging on the network side, thinking that perhaps there was a misconfigured NIC with the wrong VLAN config, the problem was [...]]]></description>
			<content:encoded><![CDATA[<p>Came across a very odd issue lately where guests on one of our ESX4 hosts were periodically loosing network connectivity very briefly &#8211; maybe 10 ICMP packets every half hour or hour.</p>
<p>After much debugging on the network side, thinking that perhaps there was a misconfigured NIC with the wrong VLAN config, the problem was still happening.</p>
<p>So ssh&#8217;ing onto the host, I started to trawl through the log files, and came across the below in the /var/log/vmkwarning file:</p>
<p>Feb 17 13:44:19 vminfraboxvmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Retry world failover device &#8220;naa.6090a028004f243d08ab44c26687e3dd&#8221; &#8211; issuing command 0&#215;410002074040<br />
Feb 17 13:44:19 vminfrabox vmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Retry world failover device &#8220;naa.6090a028004f243d08ab44c26687e3dd&#8221; &#8211; failed to issue command due to Not found (APD), try again&#8230;<br />
Feb 17 13:44:19 vminfrabox vmkernel: 18:00:00:11.865 cpu4:4222)WARNING: NMP: nmp_DeviceAttemptFailover: Logical device &#8220;naa.6090a028004f243d08ab44c26687e3dd&#8221;: awaiting fast path state update&#8230;</p>
<p>This was occuring repeatedly every half hour and the entries above filled the logs solidly for about 2 minutes continuously every half an hour.</p>
<p>After doing some digging on the google, I found out that ESX4 has a bug whereby if you have a duff or old connection to an iSCSI LUN &#8211; perhaps one that no longer exists &#8211; but you never rescanned to remove it &#8211; when the host tries to check the paths every 30 minutes, it finds this duff connection and goes through the motions of trying to find failover paths. The bug is that this causes very brief network loss to your guests.</p>
<p>The fix for me was to simply re-scan my adapter, which removed the old mapping to one of our removed LUNS&#8217;s and the problem went away.</p>
<p><map name='google_ad_map_141_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/141?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_141_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=141&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F02%2Fvmware-esx4-guests-loosing-network-connectivity-briefly%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/02/vmware-esx4-guests-loosing-network-connectivity-briefly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto: extract files from a .msi file</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 12:30:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=136</guid>
		<description><![CDATA[Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\&#60;username&#62;\Local Settings\Temp, but those files are removed once the installer exits. To extract files from a [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\&lt;username&gt;\Local Settings\Temp, but those files are removed once the installer exits.</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">To extract files from a .msi file at the command line, type:</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;"><em>msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo</em></p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">For example, to extract files from c:\installer.msi into c:\install you would type:</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;"><em>msiexec /a c:\installer.msi /qb TARGETDIR=c:\install</em></p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">The destination directory does not need to exist prior to running this command.</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">If this doesnt work, a crude way is to rename the msi file to a rar file, winrar will then allow you to extract all the files &#8211; however&#8230; it doesnt name them properly, so I used a combination of LesMsierables a .net file which allows you to view msi files and compared the size to find the specific file I wanted..</p>
<p><map name='google_ad_map_136_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/136?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_136_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=136&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F12%2Fhowto-extract-files-from-a-msi-file%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
