You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-12-01 10:14:08

onedmgoflthl
Member
Registered: 2017-11-20
Posts: 2

Error 500 if internal user login through "Remember me"

Dear All,

If a local (internal) user is logged in with "Remember me" checked, and then tryes to log in with cookies he got the 500 error. If the user is stored in LDAP evetything is ok.
In apache log i got:

PHP Fatal error:  Uncaught RuntimeException: Something went wrong searching in LDAP directory in /var/www/glpi/inc/authldap.class.php:2805\nStack trace:\n#0 /var/www/glpi/inc/auth.class.php(633): AuthLDAP::searchUserDn(Resource id #6, Array)\n#1 /var/www/glpi/front/login.php(79): Auth->Login('local_user', '', false, false)\n#2 {main}\n  thrown in /var/www/glpi/inc/authldap.class.php on line 2805

So i assume that "remember me" always check for LDAP user, and if it is not present throws an error.
What should i check to fix that?

Best Regards.

Offline

#2 2018-08-16 12:31:02

dandoz
Member
Registered: 2018-08-16
Posts: 1

Re: Error 500 if internal user login through "Remember me"

Hello All!

We reach the same problem as above. Does anyone have a solution?

Offline

#3 2018-12-03 09:21:11

rsmar
Member
Registered: 2018-12-03
Posts: 1

Re: Error 500 if internal user login through "Remember me"

Same problem here. LDAP seems to be misconfigured in some way, but testing was positive.

Offline

#4 2018-12-03 13:13:48

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Error 500 if internal user login through "Remember me"

I don't understand: you want to connect in GLPI with LDAP authentication with a user deleted from LDAP?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2020-05-23 16:50:45

afhBr007
Member
Registered: 2019-08-23
Posts: 2

Re: Error 500 if internal user login through "Remember me"

onedmgoflthl wrote:

Dear All,

If a local (internal) user is logged in with "Remember me" checked, and then tryes to log in with cookies he got the 500 error. If the user is stored in LDAP evetything is ok.
In apache log i got:

PHP Fatal error:  Uncaught RuntimeException: Something went wrong searching in LDAP directory in /var/www/glpi/inc/authldap.class.php:2805\nStack trace:\n#0 /var/www/glpi/inc/auth.class.php(633): AuthLDAP::searchUserDn(Resource id #6, Array)\n#1 /var/www/glpi/front/login.php(79): Auth->Login('local_user', '', false, false)\n#2 {main}\n  thrown in /var/www/glpi/inc/authldap.class.php on line 2805

So i assume that "remember me" always check for LDAP user, and if it is not present throws an error.
What should i check to fix that?

Best Regards.

I have the same problem. Users with local GLPI authentication, when using the Remember me when logging in option, if after login they close and open the browser window again, they are no longer able to access the GLPI (the page does not load). They need to clear cookies to be able to access again. On the other hand, users with LDAP authentication do not face the same problem, the page loads normally.

As a workaround I disable the reminder option.

Is there a way to fix this without having to disable this option? Has this problem been corrected in later versions of GLPI?

My current version: GLPI 9.3.1
Apache / 2.4.6 (CentOS) PHP / 7.1.23 MySQL Community Server 5.6.21

Last edited by afhBr007 (2020-05-23 17:01:46)

Offline

Board footer

Powered by FluxBB