<font size=2 face="sans-serif">I found that I can simply reference $c-&gt;user-&gt;hrfirstname.
</font>
<br>
<br><font size=2 face="sans-serif">As to the role info, that comes from
a different source (an sqlite db just for this info). I found that $c-&gt;session(role
=&gt; $role); works to insert the value in the session, so I just need
to pull the data from the table into the variable and then I'm good. Thanks
for the suggestions.</font>
<br>
<br><tt><font size=2>Tomas Doran &lt;bobtfish@bobtfish.net&gt; wrote on
05/31/2012 08:31:31 AM:<br>
<br>
&gt; From:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Tomas Doran &lt;bobtfish@bobtfish.net&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; To:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; The elegant MVC web framework &lt;catalyst@lists.scsys.co.uk&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Date:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 05/31/2012 08:32 AM</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Subject:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [Catalyst] $c-&gt;user and session questions</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
&gt; On 31 May 2012, at 14:00, Kenneth S Mclane wrote:<br>
&gt; <br>
&gt; &gt; I have an LDAP server authenticating my users. The look up returns<br>
&gt; a ton of fields in a hash. My questions are as follows: <br>
&gt; &gt; <br>
&gt; &gt; 1. What happens to this data/information? Is it stored in the
<br>
&gt; $c-&gt;user object? <br>
&gt; <br>
&gt; Yes<br>
&gt; <br>
&gt; &gt; 2. If it is, how do I access it? <br>
&gt; <br>
&gt; </font></tt><a href=https://metacpan.org/module/Catalyst::Authentication::Store::LDAP::User><tt><font size=2>https://metacpan.org/module/Catalyst::Authentication::Store::LDAP::User</font></tt></a><tt><font size=2><br>
&gt; <br>
&gt; Like that. Specifically the -&gt;ldap_entry method is probably what
you're after.<br>
&gt; <br>
&gt; &gt; 3. Is there a simple way to look at what is stored in the user
object? <br>
&gt; <br>
&gt; Data::Dumper::Dumper($c-&gt;user) ?<br>
&gt; <br>
&gt; &gt; 4. I would like to store the users role in the session object
so <br>
&gt; it can be accessed for authorization purposes. The docs only have
an<br>
&gt; example of storing stuff in a shopping cart, which is a bit more <br>
&gt; than I need, but there isn't enough there for me to figure out how
<br>
&gt; to store just one thing, and retrieve it, of course. Can someone <br>
&gt; show me how to do this? <br>
&gt; &gt; <br>
&gt; <br>
&gt; You need to override the user class, and implement the for_session
<br>
&gt; and from_session methods to get additionally stuff serialized.<br>
&gt; <br>
&gt; Cheers<br>
&gt; t0m<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; List: Catalyst@lists.scsys.co.uk<br>
&gt; Listinfo: </font></tt><a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"><tt><font size=2>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</font></tt></a><tt><font size=2><br>
&gt; Searchable archive: </font></tt><a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"><tt><font size=2>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</font></tt></a><tt><font size=2><br>
&gt; Dev site: </font></tt><a href=http://dev.catalyst.perl.org/><tt><font size=2>http://dev.catalyst.perl.org/</font></tt></a><tt><font size=2><br>
&gt; <br>
</font></tt>