- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
webserver auth does not log in user
- nordize
- Topic Author
- Offline
- New Member
Less
More
7 years 3 weeks ago - 7 years 3 weeks ago #151878
by nordize
webserver auth does not log in user was created by nordize
Hi all,
I just installed the latest limesurvey on a ubuntu 16.04 where I already have a local webserver auth, and
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
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
being already set.
I was expecting the user to go straight into the admin panel.
What am I missing?
I just installed the latest limesurvey on a ubuntu 16.04 where I already have a local webserver auth, and
Code:
$_SERVER['REMOTE_USER']
I enabled the webserver auth plugin, and also created an admin user with the same username as the value of
Code:
$_SERVER['REMOTE_USER']
However, when accessing the /admin/ link, limesurvey still shows its own login page, despite
Code:
$_SERVER['REMOTE_USER']
I was expecting the user to go straight into the admin panel.
What am I missing?
Last edit: 7 years 3 weeks ago by nordize.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 3 weeks ago #151892
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on 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?
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?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- nordize
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
7 years 3 weeks ago #152064
by nordize
Replied by nordize on 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
Version is 2.64.3+170327, php7.0.17, apache 2.4.20
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
7 years 2 weeks ago #152075
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on 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 answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 2 weeks ago #152130
by jelo
The plugin offers a option to deactivate the default auth-method. Perhaps not working, but perhaps not activated.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic webserver auth does not log in user
It is questionable, if there is a bug. Perhaps a documentation update would be enough.holch wrote: If you don't make a bug report the devs will definitely don't do anything...
The plugin offers a option to deactivate the default auth-method. Perhaps not working, but perhaps not activated.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
The following user(s) said Thank You: markusd1984
The topic has been locked.
- markusd1984
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
5 years 5 months ago #175881
by markusd1984
Replied by markusd1984 on topic webserver auth does not log in user
I have
working, containing joeblock and have similar issues to @jelo
when I make authwebserver as default the page just won't load even though apache error log shows access granted (Kerberos).
When I disable default I simply get the login screen, when I expected to be logged in automatically instead, since the user exists in LS.
In my config.php I have
debug level 1 & 2 doesn't show anything in my php error logs and apache neither.
Any ideas please, what else I can check?
Code:
$_SERVER['REMOTE_USER']
when I make authwebserver as default the page just won't load even though apache error log shows access granted (Kerberos).
When I disable default I simply get the login screen, when I expected to be logged in automatically instead, since the user exists in LS.
In my config.php I have
Code:
$config['auth_webserver'] = true;
debug level 1 & 2 doesn't show anything in my php error logs and apache neither.
Any ideas please, what else I can check?
The topic has been locked.
- PierreLemay
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 1 month ago #195269
by PierreLemay
Replied by PierreLemay on topic webserver auth does not log in user
I have the same problem. Webserver authenticated users (basic auth) are not logged in. An LS 401 error page is shown when Authwebserver is the default authentification method and the login form is shown when it is not the default.
I know basic auth works, I get an Apache 401 page when the user is not log in, and I can get REMOTE_USER from a test php script.
Users have the same login id for Authwebserver and Authdb. Authdb works fine, so does AuthLDAP. I have tried multiple settings, always with the same results. Debug logs show a function list, but no error.
Any idea where else I should look?
LS 4.0.1+200120 on Ubuntu 18.04.3 Docker container. Apache 2.4.41, php 7.3.11.
I know basic auth works, I get an Apache 401 page when the user is not log in, and I can get REMOTE_USER from a test php script.
Users have the same login id for Authwebserver and Authdb. Authdb works fine, so does AuthLDAP. I have tried multiple settings, always with the same results. Debug logs show a function list, but no error.
Any idea where else I should look?
LS 4.0.1+200120 on Ubuntu 18.04.3 Docker container. Apache 2.4.41, php 7.3.11.
The topic has been locked.