[Catalyst] Catalyst::Authentication::Store::LDAP confusion
Andreas Marienborg
omega at palle.net
Wed Feb 27 09:49:03 GMT 2008
On Feb 27, 2008, at 7:30 AM, Richardson, Matthew wrote:
> Hello,
>
> I am trying to following the documentation from CPAN on this, but I
> am confused. In MyApp.pm I have the following:
>
> use Catalyst qw/-Debug ConfigLoader Static::Simple
> Session
> Session::State::Cookie
> Session::Store::FastMmap
> Authentication
> Authentication::Store::LDAP
> Authentication::Credential::Password/;
>
> However when I start the Catalyst server with myapp_server.pl -r -d -
> k the following is ouput:
>
> ...
> [debug] Loaded plugins:
> .----------------------------------------------------------------------------.
> | Catalyst::Plugin::Authentication
> 0.10005 |
> |
> Catalyst
> ::Plugin::Authentication::Credential::Password |
> | Catalyst::Plugin::Authentication::Store::LDAP
> 0.0601 |
> | Catalyst::Plugin::ConfigLoader
> 0.14 |
> | Catalyst::Plugin::Session
> 0.19 |
> | Catalyst::Plugin::Session::State::Cookie
> 0.09 |
> | Catalyst::Plugin::Session::Store::FastMmap
> 0.05 |
> | Catalyst::Plugin::Static::Simple
> 0.19 |
> '----------------------------------------------------------------------------'
> ...
>
> I don't understand why Catalyst::Plugin::Authentication::Store::LDAP
> (deprecated) is being loaded. My expectation is that
> Catalyst::Authentication::Store::LDAP would be loaded. Where is
> the ::Plugin:: coming from? Do I need to load the
> Catalyst::Authentication::Store::LDAP differently?
>
Its beeing loading, because you tell Catalyst to load it. The new
Catalyst::Plugin::Authentication preferes to load its own stores and
credential-modules, so removing them from the Plugin list is a good
idea.
(
use Catalyst qw/Debug ConfigLoader Static::Simple
Session
Session::State::Cookie
Session::Store::FastMmap
Authentication/;
might be what you are looking for)
- andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080227/3d3fc123/attachment.htm
More information about the Catalyst
mailing list