phpsaml icon indicating copy to clipboard operation
phpsaml copied to clipboard

The GLPI Agent for assets inventory doesn't work when plugin is enforced

Open mpjaubry opened this issue 3 years ago • 4 comments

When the plugin mode is enforced, the GLPI agent (at least on Windows) will fail with the error (with Azure in this case):

[info] sending prolog request to server0 [error] [http client] unexpected content, starting with:

The plugin redirects the request for the SAML authentication but for the inventory it should not be redirected to the SAML provider.

mpjaubry avatar Oct 13 '22 14:10 mpjaubry

I confirm this bug too.

cyrilballagny avatar Oct 27 '22 12:10 cyrilballagny

Can you confirm the path GLPI Agent is attempting to access?

derricksmith avatar Nov 17 '22 04:11 derricksmith

Yes, "front/inventory.php" is used by the GLPI Agent.

mpjaubry avatar Nov 17 '22 06:11 mpjaubry

I'll add this exclusion in version 1.3.0.

You can temporarily fix by adding the exclusion to setup.php. You'll see other examples in the file.

if (strpos($_SERVER['REQUEST_URI'], 'apirest.php') !== false){
	return;
}
		
if (strpos($_SERVER['REQUEST_URI'], 'front/acs.php') !== false || strpos($_SERVER['REQUEST_URI'], 'front\acs.php') !== false){
	return;
}

derricksmith avatar Nov 25 '22 19:11 derricksmith