<font size=2 face="sans-serif">I found that I can simply reference $c->user->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->session(role
=> $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 <bobtfish@bobtfish.net> wrote on
05/31/2012 08:31:31 AM:<br>
<br>
> From:</font></tt>
<br><tt><font size=2>> <br>
> Tomas Doran <bobtfish@bobtfish.net></font></tt>
<br><tt><font size=2>> <br>
> To:</font></tt>
<br><tt><font size=2>> <br>
> The elegant MVC web framework <catalyst@lists.scsys.co.uk></font></tt>
<br><tt><font size=2>> <br>
> Date:</font></tt>
<br><tt><font size=2>> <br>
> 05/31/2012 08:32 AM</font></tt>
<br><tt><font size=2>> <br>
> Subject:</font></tt>
<br><tt><font size=2>> <br>
> Re: [Catalyst] $c->user and session questions</font></tt>
<br><tt><font size=2>> <br>
> <br>
> On 31 May 2012, at 14:00, Kenneth S Mclane wrote:<br>
> <br>
> > I have an LDAP server authenticating my users. The look up returns<br>
> a ton of fields in a hash. My questions are as follows: <br>
> > <br>
> > 1. What happens to this data/information? Is it stored in the
<br>
> $c->user object? <br>
> <br>
> Yes<br>
> <br>
> > 2. If it is, how do I access it? <br>
> <br>
> </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>
> <br>
> Like that. Specifically the ->ldap_entry method is probably what
you're after.<br>
> <br>
> > 3. Is there a simple way to look at what is stored in the user
object? <br>
> <br>
> Data::Dumper::Dumper($c->user) ?<br>
> <br>
> > 4. I would like to store the users role in the session object
so <br>
> it can be accessed for authorization purposes. The docs only have
an<br>
> example of storing stuff in a shopping cart, which is a bit more <br>
> than I need, but there isn't enough there for me to figure out how
<br>
> to store just one thing, and retrieve it, of course. Can someone <br>
> show me how to do this? <br>
> > <br>
> <br>
> You need to override the user class, and implement the for_session
<br>
> and from_session methods to get additionally stuff serialized.<br>
> <br>
> Cheers<br>
> t0m<br>
> <br>
> <br>
> _______________________________________________<br>
> List: Catalyst@lists.scsys.co.uk<br>
> 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>
> 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>
> 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>
> <br>
</font></tt>