in reply to Re: Catalyst LDAP Authentication Not Working
in thread Catalyst LDAP Authentication Not Working
The Controller module action<Plugin::Authentication> <default> <store> class LDAP ldap_server ldap://ldap.server:3268 binddn bind@domain bindpw password user_basedn basedn user_field samaccountname user_filter (sAMAccountName=%s)) user_scope sub <user_search_options> dref always </user_search_options> </store> <credential> class Password password_type self_check password_field password </credential> </default> </Plugin::Authentication>
sub login : Local { my ( $self, $c ) = @_; if ( my $user = $c->req->params->{user} and my $password = $c->req->params->{password} ) { if ( $c->authenticate( { login => $user, password => $password, })) { $c->response->redirect($c->uri_for('/')); } else { # login incorrect use Data::Dumper; $c->response->body("Login Incorrect"); } } else { # invalid form input $c->response->body("Form Input Invalid"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Catalyst LDAP Authentication Not Working
by Your Mother (Archbishop) on Oct 17, 2013 at 19:53 UTC | |
by Anonymous Monk on Oct 17, 2013 at 19:58 UTC | |
|
Re^3: Catalyst LDAP Authentication Not Working
by Anonymous Monk on Oct 17, 2013 at 19:02 UTC | |
by Anonymous Monk on Oct 17, 2013 at 19:13 UTC |