title: How do you install a Mac OS X Security Auth Plugin?
body: <p>I have used the <a href="http://developer.apple.com/library/mac/#samplecode/NullAuthPlugin/Introduction/Intro.html%23//apple_ref/doc/uid/DTS10003789-Intro-DontLinkElementID_2" rel="noreferrer">NameAndPassword Auth Plugin sample code</a> from Apple to create my own simple authentication method, but I can't find out how to install it!</p>
  
  <p>I followed the details in the <a href="http://developer.apple.com/library/mac/#samplecode/NullAuthPlugin/Listings/Read_Me_About_NullAuthPlugin_txt.html%23//apple_ref/doc/uid/DTS10003789-Read_Me_About_NullAuthPlugin_txt-DontLinkElementID_4" rel="noreferrer">NullAuthPlugin sample README</a> and the plugin appears to be in place correctly, but it doesn't work. In fact, I can't get the NameAndPassword sample app to work either.</p>
  
  <p>To test, I log out (I have tried rebooting too) from Mac OS, then go to log in again. It asks for my password as usual, but then after clicking 'log-in' the screen goes blue as it would normally do for a log in, but then I am returned to the log-in screen. This loop continues every time I attempt to log-in.</p>
  
  <p>Does anyone have experience with Mac OS security and can give me better details on how to correctly edit '/etc/authorization'? What is the correct format for adding the plugin to it and are there any common pitfalls with this sort of development that I might have fallen into?</p>
  
  <p>I am using the code on Mac OS 10.6.6. The code builds perfectly with no errors, warnings etc.</p>