Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Ldap authentication for survey access

More
10 years 2 months ago - 10 years 2 months ago #121997 by LazyLeopard
Hi,

I am a fairly new user to limesurvey.

I want to setup limesurvey at my workplace, where everybody has an active directory login, but not any email. I have been able to create tokens using an LDAP query, but I don't have any convenient way of letting the users know of them. The admin interface access using LDAP authentication is also working, but thats not what I want.

I want to make sure that one person, authenticated by the AD, can submit at most one persistent answer to the survey. How can I make that happen?
Last edit: 10 years 2 months ago by LazyLeopard.
The topic has been locked.
More
10 years 2 months ago #122061 by DenisChenu
Hi,

Not included in core system, think the best is to use some plugin and "alternative register" system.
When a user come to a survey, check if it LDAP authenticated, if not show an LDAP auth form.

In 2.06 you have more plugin event for this, but actually old hack work : git.framasoft.org/SondagePro-LimeSurvey-plugin/replaceRegister

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
10 years 2 months ago #122089 by LazyLeopard
Actually I am using limesurvey 2.06+build150612.

So something I get is that I can do
Code:
$this->subscribe('beforeRegister');
right?

It will take me some time to write this one out, considering my limited knowledge of php and Yii.
The topic has been locked.
More
10 years 2 months ago #122090 by DenisChenu
Yes,
I add this event after need to hack "register", than i think you have all you wants. But you ca copy/paste the "old" system too :).

beforeRegister : here to replace whole system
beforeRegisterForm : replace register form
beforeTokenEmail : before sending email

Actaully i don't found times to update manual. If you found some times : you ca update it ;) .

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose