LDAP authentication in LS 2.00+

More
3 years 8 months ago #98354 by atlet
Yes, plugin is activated.

Paste is here: http://pastebin.com/njTxXMEf

I click on link to activate the "login process". Also, the user exist in db...

Please Log in to join the conversation.

More
3 years 8 months ago #98373 by mdekker
To rule out errors on other code, try moving setAuthPlugin outside the if, to line 33 for example. Then you should always reach the newUserSession.

When you enable debug mode in your config.php you can log to the console using traceVar() that can be helpful at times.

---
Menno Dekker
The following user(s) said Thank You: atlet

Please Log in to join the conversation.

More
3 years 8 months ago #98382 by atlet
If I put $this->setAuthPlugin(); this outside if statement, I get redirection loop.

Please Log in to join the conversation.

More
3 years 8 months ago #98388 by mdekker
Probably you have trouble detecting if someone is logged in. Try adding some debug statements to see what you have in the beforeLogin method (get, post, as->attributes etc.)

---
Menno Dekker

Please Log in to join the conversation.

More
3 years 8 months ago #98392 by atlet
Now I created simple plugin just for test if I can login: pastebin.com/08ycJBn9

User is admin...

If I did it right, I must be logged in when I go to LimeSurvey url : admin/authentication/sa/login?testlogin=1 but it doesn't work. I'm missing something?

Please Log in to join the conversation.