Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Authentication plugin

Authentication plugin 5 years 7 months ago #59246

  • chinaski01
  • chinaski01's Avatar
  • Offline
  • Junior Lime
  • Posts: 24
  • Thank you received: 1
  • Karma: 0

I am going to over-ride the authentication system by using server auth and setting the following in the config.php file:

$useWebserverAuth = true;

I will create limesurvey users using a privacy-friendly username. The server will provide an identifier in the PHP_AUTH_USER variable which I will use to look up the privacy-friendly username.

Basically, I need to do the following prior to limesurvey doing it's authentication stuff:

1) Take username provided by the webserver [PHP_AUTH_USER],
2) Do an LDAP lookup on this to get a username,
3) pass the uname found in 2) above along to the limesurvey to do it's db lookup.

Question: what's the best approach to injecting my custom code into the limesurvey authentication loop.
The administrator has disabled public write access.
Time to create page: 0.281 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form