View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
13124Bug reportsAuthenticationpublic2018-01-16 15:15
Reporterorouet Assigned ToDenisChenu  
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version3.0.0-rc.x 
Fixed in Version3.0.x 
Summary13124: LDAP Authencation failed
Description

Error when logging using LDAP extension : Creating default object from empty value

Additional Information

PHP warning

Creating default object from empty value

/opt/limesurvey-3.0.1/application/libraries/PluginManager/AuthPluginBase.php(80)

68 }
69
70 /*
71
Set authentication result to success for the given user object.
72
73
@param User $user
74 @return AuthPluginBase
75
/
76 public function setAuthSuccess(User $user)
77 {
78 $event = $this->getEvent();
79 $identity = $this->getEvent()->get('identity');
80 $identity->id = $user->uid;
81 $identity->user = $user;
82 $this->getEvent()->set('identity', $identity);
83 $event->set('result', new LSAuthResult(self::ERROR_NONE));
84
85 return $this;
86 }
87
88 /*
89
Set authentication result to failure.
90
91
@param int $code Any of the constants defined in this class
92 * @param string $message An optional message to return about the failure

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)3.0.1
I will donate to the project if issue is resolvedNo
BrowserFirefox ESR 52.5.3
Database type & version10.0.32-MariaDB-0+deb8u1
Server OS (if known)Debian 8
Webserver software & version (if known)Apache/2.4.10 (Debian)
PHP Version5.6.30-0+deb8u1

Relationships

duplicate of 13115 closedDenisChenu After update from 2.72.6 to 3.0.1 LDAP login don't work any more 

Users monitoring this issue

orouet

Activities

DenisChenu

DenisChenu

2018-01-15 16:47

developer   ~45822

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

DenisChenu

DenisChenu

2018-01-15 16:49

developer   ~45823

@olle : i fix the issue, but then : other plugin can not set auth_ldap true/false …

I think it's an issue, but not a big because now : plugin dev can easily create MyAuthLdap plugin.

LouisGac

LouisGac

2018-01-16 10:06

developer   ~45830

thank you Denis !

c_schmitz

c_schmitz

2018-01-16 15:15

administrator   ~45837

Version 3.0.4 released

Related Changesets

LimeSurvey: master 06de2953

2018-01-15 16:46:59

DenisChenu

Details Diff
Fixed issue 13124: LDAP Authencation failed
Dev: using Permission::model()->hasGlobalPermission update the event
Dev: then call directly the DB (without any event)
Dev: don't find a better way to fix
Affected Issues
13124
mod - application/core/plugins/AuthLDAP/AuthLDAP.php Diff File
mod - application/core/plugins/Authwebserver/Authwebserver.php Diff File

Issue History

Date Modified Username Field Change
2018-01-04 16:39 orouet New Issue
2018-01-04 16:40 orouet Issue Monitored: orouet
2018-01-15 10:54 LouisGac Assigned To => ollehar
2018-01-15 10:54 LouisGac Status new => assigned
2018-01-15 10:56 LouisGac Relationship added duplicate of 13115
2018-01-15 16:45 DenisChenu Assigned To ollehar => DenisChenu
2018-01-15 16:47 DenisChenu Changeset attached => LimeSurvey master 06de2953
2018-01-15 16:47 DenisChenu Note Added: 45822
2018-01-15 16:47 DenisChenu Resolution open => fixed
2018-01-15 16:49 DenisChenu Status assigned => resolved
2018-01-15 16:49 DenisChenu Fixed in Version => 3.0.x
2018-01-15 16:49 DenisChenu Note Added: 45823
2018-01-16 10:06 LouisGac Note Added: 45830
2018-01-16 15:15 c_schmitz Note Added: 45837
2018-01-16 15:15 c_schmitz Status resolved => closed
2021-08-02 22:24 guest Bug heat 6 => 8