<?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>Sam Moffatt @ Pasamio.com &#187; jauthtools</title>
	<atom:link href="http://pasamio.com/category/jauthtools/feed/" rel="self" type="application/rss+xml" />
	<link>http://pasamio.com</link>
	<description>Sam Moffatt's Tech Blog: Writings on Technology</description>
	<lastBuildDate>Sat, 17 Mar 2012 03:24:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Putting Token Login to work</title>
		<link>http://pasamio.com/2009/02/22/putting-token-login-to-work/</link>
		<comments>http://pasamio.com/2009/02/22/putting-token-login-to-work/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 09:07:00 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[authentication]]></category>
		<category><![CDATA[identity]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[jauthtools]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=272</guid>
		<description><![CDATA[So a few weeks ago I released JAuthTools 1.5.4 which features Token Login. Token Login was created to solve the need to generate a secure token that you can use for automatic login, for example with stuff like newsletters. Today I&#8217;m going to show you how you can write something simple with Token Login to [...]]]></description>
			<content:encoded><![CDATA[<p>So a few weeks ago I released JAuthTools 1.5.4 which features Token Login. Token Login was created to solve the need to generate a secure token that you can use for automatic login, for example with stuff like newsletters. Today I&#8217;m going to show you how you can write something simple with Token Login to handle automatic login with tokens in a unique problem case.<br />
<span id="more-272"></span><br />
The other day on the JAuthTools mailing list there was an email of a weird case where the user&#8217;s session was being created initially with the SSO system but as soon as they clicked around it appeared like they logged out. With a bit of work we managed to work out the initial hit was proxied and the session was being created for the proxy not for the actual user. So initially the user was being successfully authenticated which gave me an idea.</p>
<p>My solution was to use token login to handle the actual request. The process is a tad convoluted, but the diagram should explain how the system works:<br />
<a href="http://pasamio.com/wp-content/uploads/2009/02/tokenlogin-sample.png"><img src="http://pasamio.com/wp-content/uploads/2009/02/tokenlogin-sample-143x300.png" alt="" title="Workflow Diagram" width="143" height="300" class="alignnone size-medium wp-image-273" /></a><br />
So the user logs into a remote service, which proxies a username to the Joomla! which is picked up by SSO HTTP in a custom component which generates a token using the detected username, redirects the user to the token login component (not through the proxy) which then lets the user log in and continue through the site.</p>
<p>So what we need to create is a new component to handle detecting the user, creating the token and them redirecting them. We can use the SSO HTTP plugin to handle detecting the remote user perfectly fine (this has already been tested) and the Token Login component can handle validating tokens and redirecting users.</p>
<p><strong>Step 1: Prerequisites</strong><br />
I&#8217;m going to use the JAuthTools packages available from Joomla!Code. To install these, you will need to install the <a href="http://sammoffatt.com.au/os/index.php/joomla-15-products/10-advanced-tools">Advanced Tools</a> package first before you get started. The latest version is <a href="http://joomlacode.org/gf/download/frsrelease/6797/22390/com_advancedtools.tgz">Advanced Tools 1.5.1</a> available from JoomlaCode.</p>
<p>Once we&#8217;ve got the Advanced Tools installed, we&#8217;re going to need the <a href="http://joomlacode.org/gf/download/frsrelease/9530/36171/pkg_jauthtools_core.tgz">JAuthTools 1.5.4 Core package</a>. This will give us the SSO library that we&#8217;re going to use later on. We will also need the <a href="http://joomlacode.org/gf/download/frsrelease/9530/36175/pkg_jauthtools_ssoplugins.tgz">SSO plugins</a> package (for the SSO HTTP plugin in our case) and the <a href="http://joomlacode.org/gf/download/frsrelease/9530/36176/pkg_jauthtools_tokenlogin.tgz">Token Login package</a>. As we&#8217;re not using the user source plugins for this case (both LDAP and Session are provided by default) we don&#8217;t need to install them and since we&#8217;re going to write our own SSO detection component we don&#8217;t need to use the options offered by the SSO package.</p>
<p>Once we&#8217;ve got all of the prerequisites installed we can start building the component</p>
<p><strong>Step 2: Building the component</strong><br />
So we&#8217;ll start building our component with the basic few lines all components require:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php<br />
defined('_JEXEC') or die();</div></div>
<p>This basic check ensures that we&#8217;re within Joomla!&#8217;s confines or kills the execution if we&#8217;re not. From here, lets set up some basic variables:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$landingpage = 'index.php';<br />
$autocreate = false;</div></div>
<p>These are two variables we&#8217;re going to use later. The landing page is used for token login to redirect the user to a page once they&#8217;ve been authenticated successfully. The autocreate option is utilised by the SSO system to determine if it should automatically create the user. Keep these in mind as we&#8217;ll use them later on.</p>
<p>In this next phase we&#8217;re going to take a copy of the current user and then use the SSO system to attempt to do the login. If its successful, the user&#8217;s ID will change and we can then create a token for them and redirect so they can login, if not we&#8217;ll redirect them with an error message:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$user =&amp; JFactory::getUser();<br />
$oldid = $user-&gt;id;<br />
jimport('jauthtools.sso');<br />
jimport('jauthtools.usersource');<br />
$sso = new JAuthSSOAuthentication();<br />
$sso-&gt;doSSOAuth($autocreate);</div></div>
<p>So we get a reference to the user object, get a copy of the user ID, import the SSO library, create a new SSO authentication object and handle authentication. We see the $autocreate variable we initialised before used here. We could load the plugins ourselves and handle everything but the doSSOAuth call will handle this for us, create the users session and if requested attempt to create the user if they don&#8217;t exist. We can then check if the user ID&#8217;s are different and then create a token to direct the user back:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">if($oldid != $user-&gt;id) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;jimport('jauthtools.token');<br />
&nbsp; &nbsp; &nbsp; &nbsp;$dbo =&amp; JFactory::getDBO();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token = new JAuthToolsToken($dbo);</div></div>
<p>A sizable chunk of code. So we check if the user ID has changed (typically from unauthenticated to authenticated, we could also just check if the user ID != 0 as well). We then import the token login library, grab a copy of the database object and then create a new token.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('username', $user-&gt;username);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('expiry', time() + 3600); // now + 1 hr (60 * 60)<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('logins', 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('landingpage', $landingpage);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;store();</div></div>
<p>So with the token, we set the username to be that of the currently authenticated user (which we know is correct), set the expiry to be the present time plus an hour. Since this data is only &#8216;temporary&#8217; we don&#8217;t bother with JDate and just use the server time. If the server transitions to or from daylight savings there could be an issue but since the user should be redirected rather quickly that seems like an unlikely possibility. We set the number of logins that the token is valid for, which for this case is only one and then we set the token&#8217;s landing page to be the value of $landingpage that we set before. Once we&#8217;ve set all of the data we call the &#8216;store&#8217; function to save all of this to the database which will also trigger the generation of the login token.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp;$session =&amp; JFactory::getSession();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$session-&gt;destroy();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app =&amp; JFactory::getApplication();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app-&gt;redirect($token-&gt;generateLoginUrl());</div></div>
<p>Since the session we&#8217;re currently in is invalid, we destroy it for a bit of extra security and then we redirect the user to the token login component. Since this request will get proxied as a redirect to the real site (hopefully the proxy doesn&#8217;t rewrite the redirect header coming back otherwise this will fail), token login can then authenticate the user (again) and create a session for them without the proxies&#8217; interference. There is however one last part of our component, which is the else case for if the user doesn&#8217;t get detected:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app =&amp; JFactory::getApplication();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app-&gt;redirect('index.php', JText::_('Invalid SSO Request'));<br />
}</div></div>
<p>So if we don&#8217;t detect anything, redirect the user to index.php with the message &#8216;Invalid SSO Request&#8217;. Too easy almost!</p>
<p>So for reference below is the final completed component file, don&#8217;t forget to update the values of $landingpage and $autocreate:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php<br />
defined('_JEXEC') or die('nachos libre!');<br />
$landingpage = 'http://www.google.com';<br />
$autocreate = false;<br />
$user =&amp; JFactory::getUser();<br />
$oldid = $user-&gt;id;<br />
jimport('jauthtools.sso');<br />
jimport('jauthtools.usersource');<br />
$sso = new JAuthSSOAuthentication();<br />
$sso-&gt;doSSOAuth($autocreate);<br />
if($oldid != $user-&gt;id) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;jimport('jauthtools.token');<br />
&nbsp; &nbsp; &nbsp; &nbsp;$dbo =&amp; JFactory::getDBO();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token = new JAuthToolsToken($dbo);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('username', $user-&gt;username);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('expiry', time() + 3600); // now + 1 hr (60 * 60)<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('logins', 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;set('landingpage', $landingpage);<br />
&nbsp; &nbsp; &nbsp; &nbsp;$token-&gt;store();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$session =&amp; JFactory::getSession();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$session-&gt;destroy();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app =&amp; JFactory::getApplication();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app-&gt;redirect($token-&gt;generateLoginUrl());<br />
} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app =&amp; JFactory::getApplication();<br />
&nbsp; &nbsp; &nbsp; &nbsp;$app-&gt;redirect('index.php', JText::_('Invalid SSO Request'));<br />
}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2009/02/22/putting-token-login-to-work/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Using Context Login with GMail and Google Apps for your Domain</title>
		<link>http://pasamio.com/2009/02/08/using-context-login-with-gmail-and-google-apps-for-your-domain/</link>
		<comments>http://pasamio.com/2009/02/08/using-context-login-with-gmail-and-google-apps-for-your-domain/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 12:21:04 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[authentication]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jauthtools]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=232</guid>
		<description><![CDATA[Context login is a new concept that I&#8217;m introducing in 1.5.4 that features a new login module called &#8220;mod_contextlogin&#8221; and support from both the Advanced LDAP and Advanced GMail plugin. I&#8217;ll focus on today the GMail plugin and how you can use both context login and the Advanced GMail plugin to connect to two different [...]]]></description>
			<content:encoded><![CDATA[<p>Context login is a new concept that I&#8217;m introducing in 1.5.4 that features a new login module called &#8220;mod_contextlogin&#8221; and support from both the Advanced LDAP and Advanced GMail plugin. I&#8217;ll focus on today the GMail plugin and how you can use both context login and the Advanced GMail plugin to connect to two different Google supported domains (e.g. GMail and a Google Apps for your Domain site).</p>
<p>The first step in all of this is to install JAuthTools. The Context Login bit is mostly self contained so once you&#8217;ve got my <a title="Advanced Tools package" href="http://sammoffatt.com.au/os/index.php/joomla-15-products/10-advanced-tools">Advanced Tools extensions</a> installed you should be able to install the extras package. You can grab the 1.5.1 version of the Advanced Tools extension off Joomla!Code at <a title="Advanced Tools Installation Package" href="http://joomlacode.org/gf/download/frsrelease/6797/22390/com_advancedtools.tgz">http://joomlacode.org/gf/download/frsrelease/6797/22390/com_advancedtools.tgz</a> and install directly in Joomla!. The next item we&#8217;re going to need is the helper package, the best way to grab this is to install the <a title="JAuthTools Core Libraries" href="http://sammoffatt.com.au/jauthtools/Quickstart_for_1.5#Install_the_JAuthTools_Libraries">JAuthTools Core Package</a> from <a title="JAuthTools Core Libraries Installation Package" href="http://joomlacode.org/gf/download/frsrelease/9530/36171/pkg_jauthtools_core.tgz">http://joomlacode.org/gf/download/frsrelease/9530/36171/pkg_jauthtools_core.tgz</a> which will also give you SSO and User Source libraries as well. The <a title="Quickstart for 1.5: JAuthTools Extras Package" href="http://sammoffatt.com.au/jauthtools/Quickstart_for_1.5#Extras">JAuthTools Extras Package</a> contains both the context login module and the Advanced GMail authentication plugin. The extras package also has the LDAP user plugin and the Advanced LDAP plugin but we&#8217;re not going to use that today. The current version of the extras package is 1.5.4 (just released!) and you can grab it off JoomlaCode at <a title="JAuthTools Extras Joomla! Installation Package" href="http://joomlacode.org/gf/download/frsrelease/9530/36195/pkg_jauthtools_extras.tgz">http://joomlacode.org/gf/download/frsrelease/9530/36195/pkg_jauthtools_extras.tgz</a> and you can also install this directly into Joomla!.</p>
<p>Once you&#8217;ve got everything installed, you can get to work. The first place we need to go into the Module Manager in the Administrator and look for Context Login. It&#8217;ll be there but it won&#8217;t be published by default. Opening it up we&#8217;ll see a lot of the params that we know and love from the core built in login module but we&#8217;ll also see some params immediately below the caching option called &#8220;Contexts&#8221;, &#8220;Require Context&#8221; and &#8220;Default Context&#8221;. The &#8220;Contexts&#8221; param is a text field that allows you to enter a per line entry of contexts. In this case we&#8217;re going to have two different contexts: one for the main GMail domain (gmail.com) and another for a Google Apps for your Domain (say &#8220;yourdomain.com&#8221;). Perhaps you&#8217;ve got a few of these domains that you want to limit people to so what you can do is enable the &#8220;Require Context&#8221; option. This will enforce a given context upon the module and remove the ability for the user to be flexible. Keep in mind that this isn&#8217;t added with the request, only a context ID is sent which is then looked up and found on the remote site. The last option is the default context to use which is set to -1 initially but can be set to the index of the context (starting from 0). This changes the context select box with the default selected and is purely a cosmetic setting. Once you&#8217;ve put in a few domains, you can enable the module and position it somewhere. If you want to put in some extra settings you can also do this like you would do with the normal login module.</p>
<p>The next step is to configure the Advanced GMail plugin. The Advanced GMail has all of the features of the existing GMail plugin and then some. If you&#8217;re currently using the GMail plugin, disable it first before you switch to the Advanced GMail plugin. The Advanced GMail plugin has a few configuration options such as &#8220;Apply Suffix&#8221; (similar to contexts but limited to only a single domain), &#8220;Username Suffix&#8221; (used with Apply Suffix, a single domain name such as &#8220;gmail.com&#8221;) , &#8220;Verify Peer&#8221; is a SSL configuration option that should be left on unless you&#8217;re having seriously strange issues (at this point, change host!) and that leaves us with &#8220;Use Contexts&#8221;. This is a simple option that has &#8220;Yes&#8221;, &#8220;No&#8221; and &#8220;Require&#8221;. What this then causes it to do is look for a context in the request and then apply the context if it finds it. The &#8220;Require&#8221; option will then enforce the use of contexts and will fail the user if the contxt doesn&#8217;t line up properly. The last option is a &#8216;username&#8217; blacklist. This is a list of usernames that the plugin should never authenticate for which is useful for accounts that you may not control (e.g. &#8216;admin&#8217;) to prevent people logging in using it. This is an extra security feature that I&#8217;ve introduced and is certainly recommend using. Enable the plugin and we&#8217;re off!</p>
<p>Once both the module is configured and enabled as well as the plugin you should be able to see it in the front end. From here you can see the form and log into to it, selecting your context and then logging in appropriately.</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2009/02/08/using-context-login-with-gmail-and-google-apps-for-your-domain/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>JAuthTools 1.5.4 Released</title>
		<link>http://pasamio.com/2009/02/08/jauthtools-154-released/</link>
		<comments>http://pasamio.com/2009/02/08/jauthtools-154-released/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 05:02:28 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[authentication]]></category>
		<category><![CDATA[jauthtools]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=230</guid>
		<description><![CDATA[Today I finally got around to releasing JAuthTools 1.5.4, the latest release in JAuthTools. I&#8217;ve put together a lot of stuff for this new release and I&#8217;m happy to have it released out there. This release introduces Token Login, Context Login, the release of my own LDAP and GMail authentication plugins each with extra advanced [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finally got around to releasing JAuthTools 1.5.4, the latest release in <a title="JAuthTools Wiki" href="http://sammoffatt.com.au/jauthtools">JAuthTools</a>. I&#8217;ve put together a lot of stuff for this new release and I&#8217;m happy to have it released out there. This release introduces Token Login, Context Login, the release of my own LDAP and GMail authentication plugins each with extra advanced features (including context integration), an OpenID SSO plugin submitted by Ian MacLennan, a new way of handling SSO plugins with new types of plugins and many more. There are tonnes of little items that I&#8217;ve added as well as bugs that have been fixed. I will follow up with blog posts about how you can configure different items to work together.</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2009/02/08/jauthtools-154-released/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Today: 04-Nov-2008: Fun with Kerberos</title>
		<link>http://pasamio.com/2008/11/04/today-04-nov-2008-fun-with-kerberos/</link>
		<comments>http://pasamio.com/2008/11/04/today-04-nov-2008-fun-with-kerberos/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 11:26:37 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[activedirectory]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[jauthtools]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[today]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=53</guid>
		<description><![CDATA[Today was a mostly ordinary day, though the day started with me buying Red Alert 3, so that wasn&#8217;t too bad &#8211; yay! Australia! A week behind the rest of the world! I could have pirated the game and had it faster and cheaper, perhaps even finished! But I digress, it was an ordinary day. [...]]]></description>
			<content:encoded><![CDATA[<p>Today was a mostly ordinary day, though the day started with me buying Red Alert 3, so that wasn&#8217;t too bad &#8211; yay! Australia! A week behind the rest of the world! I could have pirated the game and had it faster and cheaper, perhaps even finished! But I digress, it was an ordinary day.</p>
<p>Today is Melbourne Cup day, being the first Tuesday of November, so we had a luncheon of sorts and a drawing for the horses. Didn&#8217;t win, the food was good, I&#8217;m $10 poorer and such is life.</p>
<p>I&#8217;ve been spending more time at work using my Mac as a primary machine. Since I&#8217;ve moved to Exchange from Domino (or Outlook from Notes), I&#8217;ve gotten Evolution on Linux mostly working (with the exception that it doesn&#8217;t automatically look up names for emails which is tedious) and Apple&#8217;s Mail and Address Book both playing nicely with Exchange. I do miss the fact that I had Notes on my Linux desktop and things mostly worked albeit slowly and consuming large amounts of memory, but it worked with all of the features available normally. Mail&#8217;s ability to due autocompletion is what is drawing me back to it as a client, which when you start writing emails is actually more useful than you would think. Its still not up to par with the Notes autocomplete which was quite cool and a lot more advanced than either Mail&#8217;s or Outlook&#8217;s (I get Outlook via Citrix).</p>
<p>I&#8217;ve also been trying out NetBean&#8217;s PHP Early Access through a nightly build (has the ability to create PHP projects from existing sources) and I&#8217;m impressed with it. I tried it out because I wanted to try out debugging with my PHP instance and the dated version of Eclipse I had (3.2) seems to have issues &#8211; more than likely my fault &#8211; and I don&#8217;t want to waste time on trying to fix something. NetBean&#8217;s installed and worked almost instantly, however it took me a while to find where I could change the params to get J! to route items properly. I managed to work out the bug that I was having without too much issue. I knew what it was but not where it was: turned out to be exactly what I thought, an assignment operator used instead of the append operator. The Subversion support seems to be a bit off and doesn&#8217;t work yet, so I&#8217;m not quite ready to ditch Eclipse yet &#8211; but I&#8217;ll try with later versions to see what I get.</p>
<p>I had a chat with the principal (we have principal, manager, director, CEO as our chain of command) about the projects that I&#8217;m doing and the ones I&#8217;m interested in so I&#8217;ll have to do some paperwork and business cases for the new projects and justify items. We&#8217;ve recently got a new manager who is trying to find where everything is so part of this is explaining everything so that he can get a grasp of the way the system works.</p>
<p>Then I spent the majority of the afternoon with one of the ITS guys working through how our Citrix boxes work with Flex profiles and the mandatory profiles filling in the gaps in his knowledge and how different parts of the system and why items might break or behave in a particular way. I think he&#8217;s worked out how it works and he&#8217;s even figured out why a few issues are happening. So nothing exciting but useful.</p>
<p>And finally I had fun with Kerberos. I built the Kerberos module on the SLES10 server, installed it, restarted Apache and tried to get it to work. On my Mac both Safari and Firefox requested a username and password instead of using a Kerberos token and IE6 in my Citrix session seemed to just go in a weird infinite loop. I slowly worked through my entire Kerberos configuration on the server until I got to looking at the keys. It turns out that the keys were created with the wrong virtual host name for the server which is causing the issues. The keys for the real server name actually worked fine when I got around to testing them which proves that everything will work once I get the keys. The last part is a fix to the Citrix system which for some reason think that the intranet site is actually on the internet, but I&#8217;m assured that this should be easy to achieve. Getting Kerberos up and running was pretty easy ignoring the faulty keys compared with some of the nightmares I&#8217;ve had getting items to play nicely together. I&#8217;ll probably add something to my guide (http://sammoffatt.com.au/jauthtools/Kerberos) on it, to help with items.</p>
<p>Who knows, I may have even figured this Kerberos thing out!</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2008/11/04/today-04-nov-2008-fun-with-kerberos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAuthTools Update</title>
		<link>http://pasamio.com/2008/02/05/jauthtools-update/</link>
		<comments>http://pasamio.com/2008/02/05/jauthtools-update/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 12:26:22 +0000</pubDate>
		<dc:creator>Pasamio</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[jauthtools]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=37</guid>
		<description><![CDATA[Today I&#8217;ve been working on some new stuff for Joomla! to enable SSO between disparate Joomla! instances. I&#8217;ve tested it on Joomla! 1.0 and 1.5 in legacy mode. I&#8217;ll do some more work later to get it working with Joomla! 1.5 in native mode and to better integrate with JAuthTools for 1.5 (to utilise the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve been working on some new stuff for Joomla! to enable SSO between disparate Joomla! instances. I&#8217;ve tested it on Joomla! 1.0 and 1.5 in legacy mode. I&#8217;ll do some more work later to get it working with Joomla! 1.5 in native mode and to better integrate with JAuthTools for 1.5 (to utilise the SSO system that I&#8217;ve written for 1.5).  If you&#8217;re interested, check out the JAuthTools SVN here: http://joomlacode.org/svn/jauthtools/sso/joomla10x/soapsso. If you check it out you can use the install from directory feature to install it into your test sites. I&#8217;ll have packages up in the next few days.</p>
<p>I&#8217;m also looking at doing some work on the JAuthTools for 1.5 to improve support. There appears to be some issues so I want to get it back up and running as well as porting/merging some of the features from the LDAP SSI into 1.5 and the LDAP Authentication plugin. I&#8217;ll probably also do some update to docs on the wiki as well to reflect the new features.</p>
<p>Things on my todo list after I clean up my released JAuthTools plugins:</p>
<ul>
<li>Backlink Manager</li>
<li>JAuthTools Manager</li>
<li>JDiagnostics for 1.5</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2008/02/05/jauthtools-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

