+ - Change documentation which still refers to the old ::Plugin:: style
+ auth system to use ->authenticate instead of ->login, and not say that
+ you need to do things manually to have multiple stores. (t0m)
+
0.1004 21 Oct 2008
- Add the ability to have the user inflated into a custom
user class with the user_class option (t0m)
+++ /dev/null
----
-abstract: Authenticate Users against LDAP Directories
-author:
- - Adam Jacob <holoway@cpan.org>
-build_requires:
- Net::LDAP::Server::Test: 0.07
- Test::More: 0
-distribution_type: module
-generated_by: Module::Install version 0.68
-license: perl
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
-name: Catalyst-Authentication-Store-LDAP
-no_index:
- directory:
- - inc
- - t
-requires:
- Catalyst::Plugin::Authentication: 0.10003
- Net::LDAP: 0
-version: 0.1003
our $users = Catalyst::Authentication::Store::LDAP::Backend->new(\%config);
- sub action : Local {
- my ( $self, $c ) = @_;
-
- $c->login( $users->get_user( $c->req->param("login") ),
- $c->req->param("password") );
- }
-
=head1 DESCRIPTION
-You probably want L<Catalyst::Authentication::Store::LDAP>, unless
-you are mixing several stores in a single app and one of them is LDAP.
+You probably want L<Catalyst::Authentication::Store::LDAP>.
-Otherwise, this lets you create a store manually.
+Otherwise, this lets you create a store manually.
See the L<Catalyst::Authentication::Store::LDAP> documentation for
an explanation of the configuration options.
=head1 SYNOPSIS
-You should be creating these objects through L<Catalyst::Authentication::Store::LDAP::Backend>'s "get_user" method, or just letting $c->login do
+You should be creating these objects through L<Catalyst::Authentication::Store::LDAP::Backend>'s "get_user" method, or just letting $c->authenticate do
it for you.
sub action : Local {
my ( $self, $c ) = @_;
- $c->login($c->req->param(username), $c->req->param(password));
+ $c->authenticate({
+ id => $c->req->param(username),
+ password => $c->req->param(password)
+ );
$c->log->debug($c->user->username . "is really neat!");
}