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 2021-04-09 10:30:40

alien360
Member
Registered: 2021-04-09
Posts: 4

[SOLVED] "Access Denied" after server IP change

Hello,

I have problem that I cant fix for days, the problem occurs on changing IP address of the server (GLPI v.9.5.4) and I cant login anymore with any account.
The message that occurs is "The action you have requested is not allowed."
From what I had read here in the forum, it seems that it has some relation with CSRF security.
I already tried to disable GLPI_USE_CSRF_CHECK by setting it to 0 in based_config.php, the only think that happens is that I don`t receive "The action you have requested is not allowed.", but I still cant login, only difference is that login page reloads and on address bar the URL have added value "?error=1".
If I change IP address back everything works fine.

Please help me solve that problem, or point me to some direction.

Thank you!

Offline

#2 2021-04-12 13:19:57

alien360
Member
Registered: 2021-04-09
Posts: 4

Re: [SOLVED] "Access Denied" after server IP change

Hi,

Just to say what was the problem, I disabled session.cookie_* settings in php.ini and now its all fine.

Offline

#3 2021-04-12 14:17:26

Jean-Christophe
Moderator
Registered: 2007-08-22
Posts: 734

Re: [SOLVED] "Access Denied" after server IP change

Thanks for the update :-)

Offline

#4 2021-04-15 21:15:58

oj69
Member
From: Somewhere in the cloud
Registered: 2021-02-01
Posts: 157

Re: [SOLVED] "Access Denied" after server IP change

Great you got it work. Could you please add your title with a [SOLVED]. Thanks

Offline

#5 2021-05-07 08:18:32

follet
Member
Registered: 2019-07-11
Posts: 18

Re: [SOLVED] "Access Denied" after server IP change

Hello my friend, I use GLPI 9.4.3. and after migration (after log in) I have the same error: "The action you have requested is not allowed." In the logs I do not see errors and I do not know how to fix it. I tried your solution:

alien360 wrote:

I already tried to disable GLPI_USE_CSRF_CHECK by setting it to 0 in based_config.php

In the based_config.php I do not see GLPI_USE_CSRF_CHECK feature.

alien360 wrote:

Just to say what was the problem, I disabled session.cookie_* settings in php.ini and now its all fine.

In the php.ini session.cookie are disabled by default:

session.cookie_domain	no value	no value
session.cookie_httponly	no value	no value
session.cookie_lifetime	0	0
session.cookie_path	/	/
session.cookie_samesite	no value	no value
session.cookie_secure	0	0

What can I check?

Offline

#6 2021-05-15 11:55:39

maxprox
Member
Registered: 2021-05-15
Posts: 2

Re: [SOLVED] "Access Denied" after server IP change

Hi,
what happens wen you comment out all the session.cookie lines in the php.ini?

regards

Offline

Board footer

Powered by FluxBB