-
Notifications
You must be signed in to change notification settings - Fork 24
Support glpiinventory as replacement of fusioninventory plugin, glpi agent as fusioninventory agent #134
Comments
Thanks @AldarisPale This needs some research. A quick glance suggests that the new agent uses a different useragent header. const useragent = "GLPI-Injector-v"+version |
Added exclusions for new GLPI agent and injector |
Thanks, @DonutsNL ! |
See rule #58 where the exclusions are listed. |
Thanks. In my installation I'm currently patching https://github.com/DonutsNL/phpsaml/blob/edce2220ca139336385ca21f188b83f4fdd09dd5/inc/phpsaml.class.php#L56 from
to
This fixes the problem for me. I am not quite sure how #58 is related though? |
Is seems codeserver didnt push the latest version yet. The changes should be present in the repo here: https://github.com/DonutsNL/phpsaml/blob/7df05fff5fa8c958c6f7d20c1249466012f412e6/inc/phpsaml.class.php#L58 |
Thanks, @DonutsNL ! There's still a problem (and it was there with my manual patch too) that if phpsaml is being enforced, agents (in this case FusionInventory-Agent_v2.6-2) still get saml prompt. phpsaml version is the current master branch from @DonutsNL , glpi is 10.0.11. I'd debug, but don't know where to start. |
I dont use the inventory, but if you could share useragent and path info from the access log we prob will be able to figure out what additional exclusion to add.
Verzonden vanuit Outlook voor iOS<https://aka.ms/o0ukef>
…________________________________
Van: AldarisPale ***@***.***>
Verzonden: Wednesday, December 27, 2023 9:19:02 AM
Aan: derricksmith/phpsaml ***@***.***>
CC: Chris Gralike | Flevo-Scouts ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [derricksmith/phpsaml] Support glpiinventory as replacement of fusioninventory plugin, glpi agent as fusioninventory agent (Issue #134)
Thanks, @DonutsNL<https://github.com/DonutsNL> !
There's still a problem (and it was there with my manual patch too) that if phpsaml is being enforced, agents (in this case FusionInventory-Agent_v2.6-2) still get saml prompt.
phpsaml version is the current master branch from @DonutsNL<https://github.com/DonutsNL> , glpi is 10.0.11.
I'd debug, but don't know where to start.
—
Reply to this email directly, view it on GitHub<#134 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXIYOYMRAEH6NAEMAKBA4FDYLPKXNAVCNFSM6AAAAAAYT63EOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQGA3DCNZYGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
When not enforced: When enforced: |
This can be fixed by adding the following line of code in phpsaml/inc/phpsaml.class.php: private const EXCLUDED_USERAGENTS = ['FusionInventory-Agent' => '/plugins/fusioninventory/', Maybe with a wildcard, can fix all versions of fusioninventory agent |
My current understanding is that the useagent string is not a problem currently because even after adding the line, agent is still being redirected to SAML login page.
This should already be the case because This makes me think that there is some other logic error hiding somewhere. |
Turns out the problem is a simple one. With native glpiinventory plugin, the request URI is edit: sorry for the confusion created by #134 (comment) as it contained wrong URL's. |
Stumbled on another, related problem. Quick demo:
Gives the following output:
Note that |
ill do you one better, I will make this configurable from GLPI instead of the hardcoded approach. |
Thanks, @DonutsNL !!!! |
Hi!
My understanding is that since Fusioninventory team has forked GLPI 9.5, they are not motivated to continue supporting GLPI (https://fusioninventory.org/news/2023/02/12/fusioninventory-server-releases.html) and so GLPI has forked fusioninventory plugin (https://github.com/glpi-project/glpi-inventory-plugin) and agent (https://github.com/glpi-project/glpi-agent)
Currently phpsaml is aware of only fusioninventory agent and fusioninventory plugin and is not aware of glpi agent and glpiinventory plugin.
Please add support for glpi agent and glpiinventory plugin.
#132 (comment) contains a patch which was valid for bleeding edge version of https://github.com/DonutsNL/phpsaml but by now is out of date. It should be valid for all possible combinations of fusioninventory agent, glpi agent, fusioninventory plugin, glpiinventory plugin.
The text was updated successfully, but these errors were encountered: