Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Catalyst LDAP Authentication Not Working

by Your Mother (Chancellor)
on Oct 17, 2013 at 19:53 UTC ( #1058674=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Catalyst LDAP Authentication Not Working
in thread Catalyst LDAP Authentication Not Working

Don't know if it's the issue but (sAMAccountName=%s)) has an extra close paren. Might want to add this to the store (sorry, I like YAML better than Config::General)-

ldap_server_options: timeout: 30 onerror: warn

I would also recommend never taking query params for login; insist on POST params. Otherwise some user might discover that she can auto-login with a URL with her credentials in the query string.

my $user = $c->req->params->{user} and my $password = $c->req->params->{password} # Becomes... my $user = $c->request->body_params->{user} and my $password = $c->request->body_params->{password}


Comment on Re^3: Catalyst LDAP Authentication Not Working
Select or Download Code
Replies are listed 'Best First'.
Re^4: Catalyst LDAP Authentication Not Working
by Anonymous Monk on Oct 17, 2013 at 19:58 UTC
    Thanks. The extra parenthesis was the problem. If it was a snake, I'd be bit.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-08 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls