webserver auth does not log in user

More
6 months 2 weeks ago - 6 months 2 weeks ago #151878 by nordize
nordize created the topic: webserver auth does not log in user
Hi all,

I just installed the latest limesurvey on a ubuntu 16.04 where I already have a local webserver auth, and
$_SERVER['REMOTE_USER']
is set before getting to the login prompt in LimeSurvey.

I enabled the webserver auth plugin, and also created an admin user with the same username as the value of
$_SERVER['REMOTE_USER']
for which I ticked the webserver auth option (and unticked the internal db option), see gyazo.com/d1dcbe015b619363fc441770df2ba695

However, when accessing the /admin/ link, limesurvey still shows its own login page, despite
$_SERVER['REMOTE_USER']
being already set.

I was expecting the user to go straight into the admin panel.

What am I missing?
Last Edit: 6 months 2 weeks ago by nordize.

Please Log in to join the conversation.

More
6 months 2 weeks ago #151892 by jelo
jelo replied the topic: webserver auth does not log in user
Please write the explicit version you are using. Lastest is no helpful information. There are two branches of LimeSurvey and after a fews nobody knows which was the lastest version on post date.

I've never used the authentification plugin for webservers, but you might activate the debug mode in LimeSurvey. Providing infos about webserver/php might help others too.

One question left: What kind of OS are you hosting LS on and how/where did you create the username/password you're passing to the plugin?

Please Log in to join the conversation.

More
6 months 2 weeks ago #152064 by nordize
nordize replied the topic: webserver auth does not log in user
Like I said, it's ubuntu 16.04. I've already found where the bug comes from. I had to uncheck the box "Check to make default authentication method" ... which shouldn't make any difference, but it does. The devs may want to look into this and fix it.

Version is 2.64.3+170327, php7.0.17, apache 2.4.20

Please Log in to join the conversation.

More
6 months 2 weeks ago #152075 by holch
holch replied the topic: webserver auth does not log in user
If you don't make a bug report the devs will definitely don't do anything... ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 months 2 weeks ago #152130 by jelo
jelo replied the topic: webserver auth does not log in user

holch wrote: If you don't make a bug report the devs will definitely don't do anything... ;-)

It is questionable, if there is a bug. Perhaps a documentation update would be enough.

The plugin offers a option to deactivate the default auth-method. Perhaps not working, but perhaps not activated.
Attachments:

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now