View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09225 | Bug reports | Authentication | public | 2014-09-12 11:28 | 2014-10-20 13:49 |
Reporter | chettor | Assigned To | DenisChenu | ||
Priority | normal | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 09225: Infite redirection loop with WebServer authentication de lagation | ||||
Description | Hi, I'm trying to delagate authentication to the webserver with basic auth. Everything works, authenticated user can log in Limesurvey when they have an account in Limesurvey. GET /index.php/admin/authentication/sa/login HTTP/1.1 My Apache configuration about authentication is pretty simple : <Location /index.php/admin/ > Require valid-user Does anyone can help me ? Thank You ! | ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 2.05+ Build 140911 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | All | ||||
Database type & version | MySQL 5.1.73 | ||||
Server OS (if known) | Centos 6.5 | ||||
Webserver software & version (if known) | Apache 2.2.15 | ||||
PHP Version | 5.3.3 | ||||
The problem : the user are connected with webserver THEN his connection in LimeSurvey is active. You're right, redirection don't have to be if auth by DB is active? |
|
Don't think I understand your note perfectly but the expected behavior is : 1 - User connect to an Apache location protected by Auth (Basic, Auth_Cas...) 2 - Limesurvey get the REMOTE_USER variable 3a - If connected user has a Limesurvey account (login=REMOTE_USER), user access to LS interfaces. (Database auth in Limesurvey still exist but it don't check the password. Only the presence of the authenticated user in database) 3b - If user is authenticated by webserver but NOT présent in limesurvey, I expect a page like "You're not allowed to access to this page" or Something else. In my case, there is no page displaying after being authenticated by the webserver but I've got the redirection loop instead. |
|
Here is a quick and (very!) dirt workaround (I'm not a PHP expert...) : application/core/plugins/Authwebserver/Authwebserver.phpif (function_exists("hook_get_auth_webserver_profile"))
application/controllers/admin/authentication.php// Failed |
|
Hi, Think best is:
:) |
|
Yes, this behavior will be fine too. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14512 |
|
Now show an 401 page. If you want to allow access with LimeSurvey DB You have to update the DB to set NULL for is_default key. |
|
This patch perfectly match what I expected ! Thank you very much ! |
|
I'm still experiencing this issue with Limesurvey 2.05+ build141003 |
|
Version 2.05+ Build 141020 released |
|
LimeSurvey: master c164871a 2014-09-16 11:10 Details Diff |
Fixed issue 09225: Infite redirection loop with WebServer authentication Dev: Add is_default settings, if user don't have access to LimeSurvey admin : throw a 401 Dev: If user don't have access to LS admin and is_default is unset : show AuthDB form Dev: is_default is true by default |
Affected Issues 09225 |
|
mod - application/core/plugins/Authwebserver/Authwebserver.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-12 11:28 | chettor | New Issue | |
2014-09-12 13:35 | DenisChenu | Relationship added | duplicate of 09197 |
2014-09-12 13:36 | DenisChenu | Note Added: 30602 | |
2014-09-12 13:37 | DenisChenu | Relationship deleted | 09197 |
2014-09-12 13:37 | DenisChenu | Relationship added | related to 09197 |
2014-09-12 13:38 | DenisChenu | Note Edited: 30602 | |
2014-09-15 08:44 | chettor | Note Added: 30626 | |
2014-09-15 11:00 | chettor | Note Added: 30627 | |
2014-09-15 12:10 | DenisChenu | Note Added: 30628 | |
2014-09-15 12:12 | chettor | Note Added: 30629 | |
2014-09-16 10:46 | DenisChenu | Assigned To | => DenisChenu |
2014-09-16 10:46 | DenisChenu | Status | new => assigned |
2014-09-16 11:10 | DenisChenu | Changeset attached | => LimeSurvey master c164871a |
2014-09-16 11:10 | DenisChenu | Note Added: 30659 | |
2014-09-16 11:10 | DenisChenu | Resolution | open => fixed |
2014-09-16 11:13 | DenisChenu | Note Added: 30660 | |
2014-09-16 11:13 | DenisChenu | Status | assigned => resolved |
2014-09-16 11:13 | DenisChenu | Fixed in Version | => 2.05+ |
2014-09-16 11:30 | chettor | Note Added: 30662 | |
2014-10-07 16:44 | minnoce | Note Added: 30747 | |
2014-10-09 12:57 | minnoce | Issue Monitored: minnoce | |
2014-10-20 13:49 | c_schmitz | Note Added: 30834 | |
2014-10-20 13:49 | c_schmitz | Status | resolved => closed |
2021-08-02 19:34 | guest | Bug heat | 8 => 10 |