View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
07183Bug reportsAuthenticationpublic2013-01-15 09:14
Reportertbelliard Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07183: Wrong function call to authentication hook "hook_get_auth_webserver_profile" in UserIdentity.php line 92
Description

In UserIdentity, when using auth_webserver with profile auto_create through a custom hook, the wrong hook function is called.

Steps To Reproduce

Setup LS with auth_webserver = true, auth_webserver_autocreate_user = true, and define a hook function 'hook_get_auth_webserver_profile'.

The hook function is not properly called:

Line 92 of UserIdentity.php (in context):

            if (function_exists("hook_get_auth_webserver_profile"))
            {
                // If defined this function returns an array
                // describing the defaukt profile for this user
                $aUserProfile = hook_get_autouserprofile($sUser);
            }

It should be:
if (function_exists("hook_get_auth_webserver_profile"))
{
// If defined this function returns an array
// describing the defaukt profile for this user
$aUserProfile = hook_get_auth_webserver_profile($sUser);
}

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)130110
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgresql
Server OS (if known)Debian Squeeze
Webserver software & version (if known)Apache 2.2 + mod_auth_cas 1.0.9
PHP Version5.3.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2013-01-14 00:02

administrator   ~23629

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11195

c_schmitz

c_schmitz

2013-01-15 09:14

administrator   ~23665

2.00+ Build 130115 released

Related Changesets

LimeSurvey: master ef8b9015

2013-01-13 23:02:31

c_schmitz

Details Diff
Fixed issue 07183: Authentication hook "hook_get_auth_webserver_profile" not working properly Affected Issues
07183
mod - application/config/config-defaults.php Diff File
mod - application/core/UserIdentity.php Diff File

Issue History

Date Modified Username Field Change
2013-01-13 19:20 tbelliard New Issue
2013-01-14 00:00 c_schmitz Assigned To => c_schmitz
2013-01-14 00:00 c_schmitz Status new => assigned
2013-01-14 00:02 c_schmitz Status assigned => resolved
2013-01-14 00:02 c_schmitz Fixed in Version => 2.00+
2013-01-14 00:02 c_schmitz Resolution open => fixed
2013-01-14 00:02 c_schmitz Changeset attached => LimeSurvey master ef8b9015
2013-01-14 00:02 c_schmitz Note Added: 23629
2013-01-15 09:14 c_schmitz Note Added: 23665
2013-01-15 09:14 c_schmitz Status resolved => closed