I'm trying to log username authenticated throught ldap into a log
file, and I use Apache/mod_perl.
In 5.8
$c->apache->user( $username );
works, which doesn't work in 5.9.
I checked source code of relevant modules like
Catalyst
Catalyst::EngineLoader
Catalyst::Upgrading
It seems like that Catalyst::Engine::Apache is not used any more, isn't it?
Finally, something like below works for me.
my $apache = $c->engine->env->{'psgi.input'}; # Apache2::RequestRec
$apache->user( $username );
I supposed that an accessor of apache should be a method instead of a
key of hash.
Is this the right way to retrieve the apache/mod_perl object?
Thanks.
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/