<p>Your email got me a little but confused.</p>
<p>If the Ldaploginmodule is already adding a role to the principal then it will be a custom principal regardless of whether I retrieve that data from it or not, no?</p>
<p>It&#39;s not about being an issue or not to do an extra ldap connection but more of an optimization thing since one less connection is always better.</p>
<p>Regarding your last sentence, are you saying that the functionality of commiting a role exists solely for the purpose of making it harder to serialize the authentication result (which I am guessing, if so, is a security feature)?</p>

<div class="gmail_quote">On Jun 20, 2013 7:10 PM, &quot;Cantor, Scott&quot; &lt;<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 6/20/13 12:06 PM, &quot;Byte Flinger&quot; &lt;<a href="mailto:byteflinger@gmail.com">byteflinger@gmail.com</a>&gt; wrote:<br>
<br>
&gt;Hi Christopher<br>
&gt;Thanks for the answer. As mentioned, I did indeed manage to get the<br>
&gt;wanted information using an LDAP DataConnector however given that the<br>
&gt;role seems to be already returned by the login module, fast or not, it&#39;s<br>
&gt;still a waste to have to make yet another connection<br>
&gt; for information that&#39;s already been retrieved.<br>
<br>
That&#39;s how it should be done.<br>
<br>
&gt;Trying to get the info out of the principal is exactly what I have been<br>
&gt;trying to do (among other ways) however so far I have had no luck.<br>
<br>
You can, but don&#39;t. There are reasons why that will become a more<br>
complicated thing to do. Using custom principal objects causes problems<br>
for the storage of sessions and going forward that is not something you<br>
want to be relying on. If a few extra queries is noticeable to your IdP,<br>
you have something wrong on the back-end LDAP.<br>
<br>
&gt;If this is not possible, what is the use of the role parameters in the<br>
&gt;Ldaploginmodule anyway since it works to login without it (The module<br>
&gt;simply won&#39;t &quot;commit&quot; any roles, whatever that means).<br>
<br>
That&#39;s a JAAS concept. It makes it impossible to reliably serialize the<br>
result of the authenticaton without adding custom code.<br>
<br>
-- Scott<br>
<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div>