Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

V3.4.0 : issue with...
 
Notifications
Clear all

V3.4.0 : issue with LDAP connexion

2 Posts
1 Users
0 Reactions
3,024 Views
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
Topic starter
 
[#1270]

Issue reported by mail :

I am evaluating the software to manage a set of projects. Until yesterday, I was using 3.3.2. Since my instance is not a production environement, I decided to upgrade to 3.4.0.
With 3.3.2, creation of new users upon LDAP authentication was working fine. Upgrade to 3.4.0 seems to have broken that. Each attempt to connect a new user by LDAP fails and I get that error in the project’or RIA log file :

2013-07-17 18:19:31 ** ERROR ** ERROR **
2013-07-17 18:19:31
** ERROR ***** on file '/var/www/projectorria/tool/projector.php' at line (1046)


 
Posted : 18 Jul 2013 22H22
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
Topic starter
 

To fix this issue:
in file /model/User.php, add

				  $_SESSION['user']=$this;

just before line 691

				  $resultSaveUser=$this->save();

Result shoild look like this

				  $this->isLdap=1;
				  $this->name=$paramlogin;
				  $this->idProfile=Parameter::getGlobalParameter('ldapDefaultProfile');
				  $_SESSION['user']=$this;
				  $resultSaveUser=$this->save();
					$sendAlert=Parameter::getGlobalParameter('ldapMsgOnUserCreation');

Patch is attached.


 
Posted : 18 Jul 2013 22H25
Share:

Scroll to Top