<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Alastair&apos;s Place</title>
      <link>http://alastairs-place.net/</link>
      <description>My place. My thoughts. My stuff.</description>
      <language>en</language>
      <copyright>Copyright 2008</copyright>
      <lastBuildDate>Wed, 17 Sep 2008 16:20:52 +0000</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=4.01</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

      
      <item>
         <title>Path MTU problems</title>
         <description><![CDATA[<p><a href="http://twitter.com/rbrockerhoff/statuses/924527429" class="external">Rainer Brockerhoff</a> has just changed ISP and is having what sound like MTU problems.  These are increasingly common and there is a lot of misunderstanding about what causes them and why.</p>

<p>Essentially the problem is that some types of network link have a smaller limit on the maximum packet size than others.  Originally, machines used to simply assume the worst and only transmitted packets of up to 576 octets in size.  This was quickly changed so that hosts using TCP/IP negotiate the maximum segment size during connection set-up.  However, if there are routers between the two hosts, it is possible that the hosts&rsquo; MTU values are higher than the link between the routers.</p>

<p>If that happens, one option is for the routers to fragment the packets.  Unfortunately this has several negative effects and has occasionally been deliberately blocked to prevent various types of Denial of Service attack.</p>

<p>A better approach, therefore, would be for the hosts to attempt to discover the MTU of the network path over which they are communicating.  To do this, they transmit large packets with the DF (Do not Fragment) flag set.  When a router receives such a packet, it is supposed to reply with an ICMP message indicating that the packet was too large and cannot be forwarded.  When such a message arrives, the sending host can reduce the MTU of the link as appropriate and retry.</p>

<p>And herein lies the problem.  Some sysadmins apparently don&rsquo;t realise that <em>ICMP messages are required for correct operation</em> and block all of them.  Or maybe they just block the one required for path MTU discovery.  Either way, doing this breaks things <em>badly</em> and leads to all kinds of weird symptoms that people tend to blame on end users and their ISPs.</p>

<p>There are some tools you can use to investigate if you think this problem is happening to you; <a href="http://www.wand.net.nz/scamper/" class="external">scamper</a> seems to be particularly useful. e.g.</p>

<blockquote class="code"><code>alastair$ </code><kbd>sudo ./scamper -c "trace -M -P ICMP" -i 10.0.1.1</kbd></blockquote>

<p>will display the MTU at each point along the route from your machine to 10.0.1.1.</p>

<p>Or you can &ldquo;just&rdquo; set the MTU on your machine to a lower value.  Unfortunately it is usually tricky to configure a special MTU for accessing the Internet and the usual Ethernet MTU for the rest of your network, and in order to avoid problems you really should have the MTU settings the same for all hardware on your network segment.</p>]]></description>
         <link>http://alastairs-place.net/2008/09/path_mtu_proble/</link>
         <guid>http://alastairs-place.net/2008/09/path_mtu_proble/</guid>
         <category></category>
         <pubDate>Wed, 17 Sep 2008 16:20:52 +0000</pubDate>
      </item>
      
      <item>
         <title>iPhone versus iPhone 3G</title>
         <description><![CDATA[<p>First thoughts on iPhone 3G:</p>

<ul>
<li>I prefer the metal back on the original iPhone.  I do understand, though, that it has a negative impact on radio performance and hence battery life.</li>
<li>The metal buttons on the iPhone 3G don&rsquo;t appear to be very well finished.  I&rsquo;d have rounded the edges off a bit more; they seem too sharp to me.</li>
<li>The silent mode switch is significantly stiffer on the 3G.  I think I prefer the original feel, but I understand that some people kept knocking it, so maybe the change is necessary.</li>
<li>The iPhone 3G is physically slightly larger, and the display has a slightly larger border as a result.</li>
<li>The colour temperature of the display has indeed been adjusted.  This is a Good Thing, as I always thought the original iPhone was too blue.</li>
<li>The touch screen on the 3G seems slightly more responsive.</li>
<li>iPhone 3G seems like it might be a little quicker than the original.  This is just subjective, I haven&rsquo;t measured or looked at the devices in it, so it may well be entirely imaginary.</li>
</ul>

<p>Of course, the GPS and 3G features will be useful, particularly in the part of the U.K. where I live because EDGE coverage is patchy so with my original iPhone I ended up having to rely on GPRS which is pretty slow by comparison to EDGE, never mind 3G data.  3G, on the other hand, has pretty wide coverage here in the U.K.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/iphone_versus_i/</link>
         <guid>http://alastairs-place.net/2008/07/iphone_versus_i/</guid>
         <category>Cool Stuff</category>
         <pubDate>Wed, 30 Jul 2008 17:51:56 +0000</pubDate>
      </item>
      
      <item>
         <title>Discounts</title>
         <description><![CDATA[<p>OK, so our website <em>finally</em> supports discounts.  It&rsquo;s a little trickier than it sounds, actually, since we have to worry about VAT which rather complicates matters.</p>

<p>I was a bit worried about having to make the changes to the site because it involved updating some of the important tables in our database, but it all seems to have gone OK&#8230; only one &ldquo;observation&rdquo; from a customer so far, and I believe that problem is now fixed.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/discounts/</link>
         <guid>http://alastairs-place.net/2008/07/discounts/</guid>
         <category>Work</category>
         <pubDate>Wed, 30 Jul 2008 16:26:22 +0000</pubDate>
      </item>
      
      <item>
         <title>On the effect of piracy</title>
         <description><![CDATA[<p>To all the doubters out there who think that piracy doesn&rsquo;t hurt the bottom line of small software companies, I say this.  Our products have recently been subject to an attempt (albeit a flawed one) to crack the protection.  It didn&rsquo;t work, but that hasn&rsquo;t stopped the distribution of the broken cracked copies, which are likely to damage peoples&rsquo; data.</p>

<p>Nor does the fact that these cracked versions could do serious damage dissuade people from downloading them, apparently.  We can see from our daily sales figures <em>a drop of nearly 30%</em> since the illegal copies first appeared.  Yes, that&rsquo;s right, 30%.</p>

<p>The worst thing though, worse even than losing 30% of our business to these jerkoffs, is that because the crack was done by an incompetent, the programs could terminate at any time while they&rsquo;re working on the users&rsquo; disks, leaving them with potentially serious filesystem damage.  Filesystem damage <em>for which we will be blamed</em>, though it&rsquo;s not our fault in the slightest.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/on_the_effect_o/</link>
         <guid>http://alastairs-place.net/2008/07/on_the_effect_o/</guid>
         <category>Work</category>
         <pubDate>Tue, 22 Jul 2008 18:14:41 +0000</pubDate>
      </item>
      
      <item>
         <title>FUD and extremism from the FSF</title>
         <description><![CDATA[<p>The FSF has published an article entitled <a href="http://www.fsf.org/blogs/community/5-reasons-to-avoid-iphone-3g" class="external">5 reasons to avoid iPhone 3G</a>.  Ironically, given the fuss they made about Microsoft FUDding Linux, this article is a blatant attempt to FUD Apple.</p>

<p>Sure, iPhone developers have to pay a one-off fee to Apple, and Apple does reserve the right to reject applications if they don&rsquo;t meet the requirements stipulated in the SDK license agreement.  And sure, iPhone does support DRM, something the FSF has been campaigning against for some time, but something the FSF is ill qualified to talk about as it does not, in fact, have any problems of its own with software, music or movie piracy.</p>

<p>I think the most objectionable parts are where the article says things like</p>

<blockquote style="font-style: italic">
iPhone exposes your whereabouts and provides ways for others to track you without your knowledge.
</blockquote>

<p>which is nothing less than blatant and unjustifiable scaremongering.  Yes, the iPhone 3G has GPS.  But in order for an application to use it, the user must agree to a message displayed by the phone.  That is, the user is explicitly asked whether to allow an application access to their location.</p>

<p>There is also a claim that</p>

<blockquote style="font-style: italic">
[Fairplay] prevents you from installing free software -- software whose authors want you to freely share, copy and modify their work.
</blockquote>

<p>which is total bunk.  If authors of Free Software choose to provide a build for the iPhone (and to do that, only a single developer need pay the license fee), they can submit their application to the App Store and Apple will distribute it for free and allow users to install it.</p>

<p>And sure, anyone who wants to modify the application will need a developer license, which they have to pay for.  Why is this suddenly a bad thing?  Wasn&rsquo;t it FSF that made the point that Free Software was free as in speech and not necessarily as in beer?  And isn&rsquo;t it also the case that for many platforms those people who build their own versions of Free Software products require the use of commercial tools of some sort?</p>

<p>The go on to say that</p>

<blockquote style="font-style: italic">
Jobs would have us believe that all of these restrictions are necessary.
</blockquote>

<p>and he&rsquo;s right.  They are.  Why?  Because otherwise the iPhone would be full of viruses and other malware within a few months.  The way Apple has chosen to do things does have some disadvantages, but it has the major advantage that it&rsquo;s significantly harder to publish iPhone malware without getting caught than it is to publish malware for other mobile devices.</p>

<p>And as for the theory that Apple is</p>

<blockquote style="font-style: italic">
a single greedy, dishonest and secretive entity
</blockquote>

<p>well I think &ldquo;johns&rdquo;, whoever he is, needs to grow up.  Apple is, of course, a business and is out to make money.  That&rsquo;s what businesses do.  But they don&rsquo;t do it solely for their own benefit; you and I hold shares in businesses, both directly and indirectly (through our bank accounts, our pensions, and a wide range of other investments).  If they make a profit, we benefit.  Likewise, if we don&rsquo;t like how they behave, we can turn up at their AGM, or demand that those who represent our interests do so, and demand that they change their behaviour.  This modern notion that big business is the Big Bad Wolf is borne out of ignorance, and it&rsquo;s a great shame that the FSF seems intent on promoting this jaded and inaccurate view of the world.</p>

<p>It&rsquo;s also a bit rich FUDding someone else and then accusing that other entity of being dishonest.</p>

<p>When I was a student, I used to think I agreed with some of the goals of the FSF.  Maybe even most of them.  In recent years though, they seem to have become more and more extreme and I now find myself wishing that they would either go back to their roots and forget about all these new things they&rsquo;re complaining about, many of which have little or nothing to do with the original Free Software idea, or just pack it in and leave the rest of us the hell alone.</p>

<p>I certainly won&rsquo;t be supporting them in future, and I have no intention of contributing to any of their projects (as I have occasionally in the past).</p>

<p>FSF, you&rsquo;ve lost my support.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/fud_and_extremi/</link>
         <guid>http://alastairs-place.net/2008/07/fud_and_extremi/</guid>
         <category></category>
         <pubDate>Fri, 18 Jul 2008 11:17:48 +0000</pubDate>
      </item>
      
      <item>
         <title>Heh. Someone tried to crack iPartition 3</title>
         <description><![CDATA[<p>Someone tried to crack iPartition 3.  Unfortunately for users of this cack-handed crack, they got it wrong and so the &ldquo;cracked&rdquo; version is liable to stuff up your disk.</p>

<p>I don&rsquo;t understand why anyone would be stupid enough to attempt this, actually.  I mean, tampering with the code of a copy protected disk utility is a bit like tampering with a nuclear weapon.  The person most likely to get hurt is <em>you</em>.</p>

<p>But hey, dumb-ass cheapskate software pirates, by all means destroy your data with pirated copies.  Just don&rsquo;t come crying to us when it happens&#8230; <em>we</em> didn&rsquo;t give them to you and <em>we</em> didn&rsquo;t tamper with them.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/heh_someone_tri/</link>
         <guid>http://alastairs-place.net/2008/07/heh_someone_tri/</guid>
         <category></category>
         <pubDate>Tue, 15 Jul 2008 09:35:31 +0000</pubDate>
      </item>
      
      <item>
         <title>Web account security</title>
         <description><![CDATA[<p>For those who don&rsquo;t already know, <a href="http://blog.karppinen.fi/2008/07/apple-just-gave-out-my-apple-i.html" class="external">Marko Karpinnen</a> just had someone steal his Apple ID by sending a message to Apple implying that he&rsquo;d changed e-mail address and forgotten his password.</p>

<p>Shocking as this may be, it really highlights a serious problem with current methods of identifying people, both off and on-line.</p>

<p>Marko is understandably unhappy about this, and suggests that Apple should have checked that it was him &ldquo;by comparing the information in their personal profile&rdquo;.  Yet most information about most of us, particularly prominent developers like Marko, is publicly available (for instance via WHOIS or via a variety of other means).  I&rsquo;m quite sure that, even if Apple had done those kinds of checks, they could be readily defeated by someone with the gall to try this kind of thing in the first place.</p>

<p>The fact is that we need an identity system that is <em>not</em> based on people&rsquo;s personal details, or this kind of thing is going to happen all the time.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/web_account_sec/</link>
         <guid>http://alastairs-place.net/2008/07/web_account_sec/</guid>
         <category></category>
         <pubDate>Wed, 09 Jul 2008 13:19:23 +0000</pubDate>
      </item>
      
      <item>
         <title>Happy Birthday to Me</title>
         <description><![CDATA[<p>Yes folks, I just hit the big three-oh.  No longer am I a twentysomething :-(</p>

<p>Seems only yesterday I left primary school&#8230;</p>]]></description>
         <link>http://alastairs-place.net/2008/07/happy_birthday/</link>
         <guid>http://alastairs-place.net/2008/07/happy_birthday/</guid>
         <category></category>
         <pubDate>Sat, 05 Jul 2008 17:41:01 +0000</pubDate>
      </item>
      
      <item>
         <title>Using WebView in a modal dialog</title>
         <description><![CDATA[<p><a href="http://www.sutes.co.uk/" class="extern">Chris</a>, who has been working with me at Coriolis for some time now has recently set up a weblog (something which I think is long overdue, frankly), and has posted <a href="http://sutes.co.uk/2008/06/using-webview-in-a-modal-dialo.html" class="external">a short piece about using WebView in a modal dialog</a>, including some code that lets you do just that.</p>]]></description>
         <link>http://alastairs-place.net/2008/07/using_webview_i/</link>
         <guid>http://alastairs-place.net/2008/07/using_webview_i/</guid>
         <category>Cocoa</category>
         <pubDate>Tue, 01 Jul 2008 17:22:41 +0000</pubDate>
      </item>
      
      <item>
         <title>File sharing sites hiding behind DMCA</title>
         <description><![CDATA[<p>Yet again our software has been posted to various file sharing websites, and yet again we are forced to ask them to remove it.</p>

<p>But many of them still hide behind DMCA even when told that they are hosting a folder full of infringing material. They won&rsquo;t act on their own account and don&rsquo;t actually care that their Acceptable Use Policies already prohibit such material and would enable them to remove the files themselves.</p>

<p>How do I know this?  Well today&rsquo;s little irritation involved sending a notice to MediaFire about a folder full of files over which we hold copyright.  I also, in the same e-mail, complained about the containing folder, which contains a lot of other peoples&rsquo; copyrighted work (though I noted that I had no legal standing to do so).  What did I get in reply?  Yes, that&rsquo;s right folks, a demand that I format my request exactly as required by DMCA and a notice that MediaFire would <em>ignore</em> any request that wasn&rsquo;t formatted that way.  Furthermore they tell me that they will ignore any request relating to a folder, since they can&rsquo;t be bothered to check all the files in a folder (just the ones you list).</p>

<p>Ethical?  Like hell.<br />
</p>]]></description>
         <link>http://alastairs-place.net/2008/06/file_sharing_si/</link>
         <guid>http://alastairs-place.net/2008/06/file_sharing_si/</guid>
         <category></category>
         <pubDate>Fri, 27 Jun 2008 09:56:17 +0000</pubDate>
      </item>
      
      <item>
         <title>And, with luck, good for the Irish too</title>
         <description><![CDATA[<p><a href="http://news.bbc.co.uk/1/hi/world/europe/7452171.stm" class="external">If this is true</a>, then good for the Irish too.</p>

<p>Our political <s>leaders</s>masters won&rsquo;t let us have a vote on membership of the European Union here in the U.K., because they <em>know</em> we&rsquo;d vote &ldquo;No&rdquo;.  In fact, they won&rsquo;t even let us vote on the <s>Lisbon Treaty</s>E.U. Constitution because they know we&rsquo;d vote &ldquo;No&rdquo; and scupper that too&mdash;in spite of <em>promising</em> a referendum on that very subject.</p>

<p>Fortunately it sounds like the Irish have scuppered it for us, but it frankly stinks that our government lies to us, fails to represent our views and then won&rsquo;t let us have our say even when it promised.</p>]]></description>
         <link>http://alastairs-place.net/2008/06/and_with_luck_g/</link>
         <guid>http://alastairs-place.net/2008/06/and_with_luck_g/</guid>
         <category></category>
         <pubDate>Fri, 13 Jun 2008 13:34:33 +0000</pubDate>
      </item>
      
      <item>
         <title>Good for David Davis</title>
         <description><![CDATA[<p>In the wake of Parliament&rsquo;s passing of the bill allowing <em>forty-two days</em> detention without charge for terrorist suspects, <a href="http://news.bbc.co.uk/1/hi/uk_politics/7450627.stm" class="external">David Davis</a>, the Conservative Shadow Home Secretary, has resigned as an MP to fight a by-election on the issue of whether or not it is right to curtail our civil liberties in this way.</p>

<p>Good for him I say.</p>

<p>The only reason the public thinks (at least according to the polls it does) that these kinds of illiberal measures are acceptable is that the government of our country has been conning us.  The theoretical threat from Islamist terrorism and in particular Al Qaeda&mdash;and it remains primarily a <em>theoretical</em> threat, unlike for instance the IRA during the late 70s and 80s&mdash;has been used to justify large numbers of illiberal and frankly unpleasant measures which we are promised are &ldquo;to combat terrorism&rdquo; and which are then promptly misused to keep pensioners out of the Labour Party conference, to spy on people sending their children to school, to prevent law abiding people from attending legitimate peaceful protests and all kinds of other similar things <em>which have nothing whatsoever to do with terrorism</em>.</p>

<p>The steady creep of authoritarianism into the British state has continued unabated under this Labour government and the problem is that because our civil liberties have been chipped away one piece at a time it has been difficult for the public to notice the impact it is having.</p>

<div style="font-size: smaller; font-family: 'Helvetica', 'Arial', sans-serif; margin-left: 2em; margin-right: 2em; background-color: #eee; padding: 16px;">
<strong>Aside</strong>:
 I should perhaps say at this point that I&rsquo;m actually a <em>supporter</em> of the idea of ID cards, but I am most certainly <em>not</em> a supporter of this business of attempting to scare the public into letting politicians take increasing control of and an increasing interest in the minutiae of everyday life.

<p>ID cards I support because <em>we already have them&#8230; lots</em> of them, in fact; they&rsquo;re called (variously) credit cards, debit cards, chargecards, bank cards, driving licenses, membership cards, clubcards, reward cards, points cards, passcards, passes, and even &ldquo;identity cards&rdquo;.  I&rsquo;d rather carry just the one, which <em>does not</em> mean that all the organisations whose cards I currently carry would have access to all of the information held by all of the other organisations.<br />
</div></p>

<p>David Davis, it seems, intends to bring all of this to the fore in his constituency and it will hopefully make his constituents&mdash;not to mention the rest of the population&mdash;realise that something is seriously amiss.<br />
</p>]]></description>
         <link>http://alastairs-place.net/2008/06/good_for_david/</link>
         <guid>http://alastairs-place.net/2008/06/good_for_david/</guid>
         <category></category>
         <pubDate>Fri, 13 Jun 2008 13:25:33 +0000</pubDate>
      </item>
      
      <item>
         <title>Panic buying stupidity</title>
         <description><![CDATA[<p>OK, so we&rsquo;ve yet again been <a href="http://news.bbc.co.uk/1/hi/business/7452033.stm" class="external">asked not to panic-buy fuel</a>.  Well it so happens that this morning I really did need to fill my car up (I&rsquo;d just about run out of petrol), so as usual I drove to work via the local petrol station.</p>

<p><em>Chaos</em>.</p>

<p>Not only were there large numbers of vehicles trying to fill up (more than normal, I would say), but a Budgens delivery driver (the local petrol station has a Budgens supermarket attached) was reversing a huge articulated lorry into the station and across the forecourt.  In order to do that, he had to spend a considerable amount of time completely blocking the road.</p>

<p>Whether the large queues were caused by the amount of time the road was blocked, or whether this heralds the beginning of yet another round of stupid panic buying, I don&rsquo;t know, but I did notice that Newgate Lane (along which I have to drive every day) was also clogged up until I got past the ASDA roundabout.  ASDA, of course, has a petrol station&#8230;</p>]]></description>
         <link>http://alastairs-place.net/2008/06/panic_buying_st/</link>
         <guid>http://alastairs-place.net/2008/06/panic_buying_st/</guid>
         <category></category>
         <pubDate>Fri, 13 Jun 2008 13:02:58 +0000</pubDate>
      </item>
      
      <item>
         <title>Static automounts without guest access on OS X 10.5 Server</title>
         <description><![CDATA[<p>OK, so this was a real PITA to figure out, and I didn&rsquo;t find a great deal of help in Google so I&rsquo;m going to write a short post about doing this, both so <em>I</em> can find it in future and so that other people can benefit from what I discovered.</p>

<p>So, the first thing to do is to make sure that you have a working Kerberos set-up.  To check this, you can try</p>

<blockquote class="code">
<pre>
$ kinit <em>some-user</em>
Please enter the password for <em>some-user</em>@<em>EXAMPLE.COM</em>:
</pre>
</blockquote>

<p>If it successfully authenticates when given the name of a user in your Open Directory set-up, you&rsquo;re all set.  You can, if you like, look at the Kerberos ticket you just gained by using the <kbd>klist</kbd> command, but if <kbd>kinit</kbd> worked then there&rsquo;s probably no need.  If, on the other hand, that <kbd>kinit</kbd> didn&rsquo;t work, you need to re-configure Kerberos from scratch.  This seems to be very hit and miss and often it&rsquo;s easier to reconfigure <em>Open Directory</em> from scratch instead, but that&rsquo;s a bit drastic and is only really practical for smaller set-ups because it tends to result in all the passwords getting reset.</p>

<p>If your Kerberos isn&rsquo;t working, please don&rsquo;t bother asking me about it.  I have yet to find a reliable sequence of commands to completely re-initialise it on OS X Server.  You might find <a class="external" href="http://www.afp548.com">AFP548.com</a> useful if you&rsquo;re in this sort of mess.</p>

<p>Next, make sure that your client machines are configured to authenticate using Kerberos.  <em>On OS X 10.5</em>, that means editing <kbd>/etc/authorization</kbd> to change</p>

<blockquote class="code">
<pre>
&lt;key&gt;system.login.console&lt;/key&gt;
&lt;dict&gt;
  &lt;key&gt;class&lt;/key&gt;
  &lt;string&gt;evaluate-mechanisms&lt;/string&gt;
  &lt;key&gt;comment&lt;/key&gt;
  &lt;string&gt;Login mechanism based rule.  Not for general use, yet.&lt;/string&gt;
  &lt;key&gt;mechanisms&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;builtin:smartcard-sniffer,privileged&lt;/string&gt;
    &lt;string&gt;loginwindow:login&lt;/string&gt;
    &lt;string&gt;builtin:reset-password,privileged&lt;/string&gt;
    &lt;string&gt;builtin:auto-login,privileged&lt;/string&gt;
    &lt;string&gt;builtin:<b>authenticate</b>,privileged&lt;/string&gt;
    &lt;string&gt;HomeDirMechanism:login,privileged&lt;/string&gt;
    &lt;string&gt;HomeDirMechanism:status&lt;/string&gt;
    &lt;string&gt;MCXMechanism:login&lt;/string&gt;
    &lt;string&gt;loginwindow:success&lt;/string&gt;
    &lt;string&gt;loginwindow:done&lt;/string&gt;
  &lt;/array&gt;
&lt;/dict&gt;
</pre>
</blockquote>

<p>to</p>

<blockquote class="code">
<pre>
&lt;key&gt;system.login.console&lt;/key&gt;
&lt;dict&gt;
  &lt;key&gt;class&lt;/key&gt;
  &lt;string&gt;evaluate-mechanisms&lt;/string&gt;
  &lt;key&gt;comment&lt;/key&gt;
  &lt;string&gt;Login mechanism based rule.  Not for general use, yet.&lt;/string&gt;
  &lt;key&gt;mechanisms&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;builtin:smartcard-sniffer,privileged&lt;/string&gt;
    &lt;string&gt;loginwindow:login&lt;/string&gt;
    &lt;string&gt;builtin:reset-password,privileged&lt;/string&gt;
    &lt;string&gt;builtin:auto-login,privileged&lt;/string&gt;
    &lt;string&gt;builtin:<b>krb5authnoverify</b>,privileged&lt;/string&gt;
    &lt;string&gt;HomeDirMechanism:login,privileged&lt;/string&gt;
    &lt;string&gt;HomeDirMechanism:status&lt;/string&gt;
    &lt;string&gt;MCXMechanism:login&lt;/string&gt;
    &lt;string&gt;loginwindow:success&lt;/string&gt;
    &lt;string&gt;loginwindow:done&lt;/string&gt;
  &lt;/array&gt;
&lt;/dict&gt;
</pre>
</blockquote>

<p>That isn&rsquo;t the only way to go about this part, but you need to make sure that your users get a Kerberos ticket automatically somehow.  If they don&rsquo;t, they won&rsquo;t be able to mount the static automount because the server won&rsquo;t recognise them.  See <a class="external" href="http://docs.info.apple.com/article.html?artnum=107154">Article 107154: Enabling Kerberos authentication for Login Window</a> on Apple&rsquo;s site, but note that the part where it says that the information is not required as of OS X Server 10.3 is not, in fact, entirely true.  Various universities set things up using Kerberos and some of their pages may also be helpful; I quite like <a class="external" href="http://tech.ait.iastate.edu/macosx/how-to/kerberized-login.shtml">Iowa State&rsquo;s</a> page, personally.</p>

<p>Next, set-up your shares using Server Admin, setting the Custom mount path setting as required.  For instance, I set one up with the path <kbd>/Network/Groups</kbd>.  On previous versions of Mac OS X, you could do this step from Workgroup Manager, which was useful because it meant you could manually edit the mount URL to remove the hard-coded &ldquo;<code>;AUTH=NO USER AUTHENT</code>&rdquo; setting.  Unfortunately you can no longer do this as of 10.5, which means that you have to use <kbd>dscl</kbd> or the various LDAP utilities.</p>

<p>Even more unfortunate, when I tried to edit with <kbd>dscl</kbd>, I just got the error message</p>

<blockquote class="code">
<pre>
*** Uncaught Exception: <NSInvalidArgumentException> ([DSoDataNode initWithDir:value:] value is not a valid NSString nor NSData)
</pre>
</blockquote>

<p>(and yes, I&rsquo;m <em>certain</em> I used the right command).  As a result, I ended up making myself a file like this (I called mine <kbd>groups.ldif</kbd>):</p>

<blockquote class="code">
<pre>
dn: cn=server.example.com:/Volumes/SomeVolume/Groups,cn=mounts,dc=server,dc=example,dc=com
replace: mountOption
mountOption: url==afp://server.example.com/Groups
</pre>
</blockquote>

<p>and then I did</p>

<blockquote class="code">
<pre>
$ kinit <em>diradmin</em>
Please enter the password for <em>diradmin</em>@<em>EXAMPLE.COM</em>:
$ ldapmodify -f groups.ldif
</pre>
</blockquote>

<p>The first line is just to authenticate as the directory administrator&mdash;you only need to do that once.  If you need to examine your LDAP mount records first, you can do something like this:</p>

<blockquote class="code">
<pre>
$ ldapsearch -b "cn=mounts,dc=server,dc=example,dc=com"
</pre>
</blockquote>

<p>which will list all of the mount records.</p>

<p>One other useful tidbit is that if you&rsquo;re trying to test this from a client machine, you can do</p>

<blockquote class="code">
<pre>
$ sudo automount -v
</pre>
</blockquote>

<p>from Terminal to refresh the automount set-up on the client.</p>

<p>It all sounds so simple written down, but this took me a good few hours and a lot of frustration.  Hopefully I&rsquo;ve saved someone else (or even just myself, in future) from repeating that experience.</p>]]></description>
         <link>http://alastairs-place.net/2008/06/static_automoun/</link>
         <guid>http://alastairs-place.net/2008/06/static_automoun/</guid>
         <category></category>
         <pubDate>Tue, 03 Jun 2008 18:36:33 +0000</pubDate>
      </item>
      
      <item>
         <title>Scared some motorcylist</title>
         <description><![CDATA[<p>On the way into work today I think I scared a motorcyclist.  It was partly my fault for being in the wrong lane (not that I had much chance of being in the right lane given the lack of signs until the very last minute&mdash;I went a different way to work this morning, along a road I&rsquo;m not entirely familiar with), but the fact that I gave him a fright was his own silly fault.</p>

<p>I was trying (<em>carefully</em>, I might add&#8230; there was never any danger of a collision) to push into the lane he was in.  I think when he noticed this happening at first, like a lot of people he decided to be bloody-minded and to not let me in.  Which is both rude and awkward, but a lot of people do that kind of thing.  Anyway, as a result, he ended up alongside me, with me slightly impinging on his lane and I think assumed then that I hadn&rsquo;t seen him, which wasn&rsquo;t true.  All I wanted was either (a) for him to slow down and let me in (which, given that I was ahead of him at the time would have been sensible&#8230; when I started to move over, there was even a small gap), or (b) for him to speed up and go past.  I got the result I wanted in the end, but not without him honking his horn at me and gesturing at his eyes.</p>

<p>I find these kinds of things, which happen to me rather rarely, somewhat upsetting.  Not least because he will doubtless tell all his friends that some stupid car driver nearly knocked him off because he wasn&rsquo;t looking, which is totally untrue&mdash;as I say, there was never any danger of that happening.  It&rsquo;s the kind of incident for which there isn&rsquo;t really any blame to apportion, because nothing actually happened and nothing ever would have.  It&rsquo;s still frustrating though.  Ah well&#8230;<br />
</p>]]></description>
         <link>http://alastairs-place.net/2008/06/scared_some_mot/</link>
         <guid>http://alastairs-place.net/2008/06/scared_some_mot/</guid>
         <category></category>
         <pubDate>Tue, 03 Jun 2008 11:13:27 +0000</pubDate>
      </item>
      
   </channel>
</rss>
