Welcome to the LimeSurvey Community Forum

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

Ldap authentication for survey access

  • LazyLeopard
  • LazyLeopard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #121997 by LazyLeopard
Ldap authentication for survey access was created 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: 8 years 10 months ago by LazyLeopard.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 10 months ago #122061 by DenisChenu
Replied by DenisChenu on topic Ldap authentication for survey access
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • LazyLeopard
  • LazyLeopard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #122089 by LazyLeopard
Replied by LazyLeopard on topic Ldap authentication for survey access
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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 10 months ago #122090 by DenisChenu
Replied by DenisChenu on topic Ldap authentication for survey access
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose