Use NetEye 4.15 JWT Built-in Authentication to use Fusion Inventory and GLPI
Use Case
Suppose we want to trigger Fusion Inventory execution in a GLPI installation, where we can then use the Autonomous mode to import data into GLPI via a CURL request. Let’s see how JWT (JSON Web Token) can help us in NetEye 4.15.
Prerequisites
A NetEye 4.15 (or later) installation with the Asset module enabled
Paste the following JSON* in the payload field: { "sub": "glpi_fusion_inventory", "exp": 2516239022 }
Copy the generated token to a file in a safe folder onto the host that runs the inventory: echo "TOKEN" > /safe-jwt-tokens-folder/glpi_fusion_inventory.jwt
Remember to give the file that contains the JWT token only minimum permissions since this will allow someone to log in to NetEye as the glpi_fusion_inventory user
Please remember that this is just an example of how to properly send data from Fusion Inventory to GLPI. If you’re going to use this approach often, take care to have an automatic process to refresh the JWT token periodically, and to always set a proper expiration time.
Full Stack Developer at Wuerth Phoenix. I love questioning myself, find new challenges to learn and new adventures to grow up. PHP lover trying to expand my skills studying new languages and tools to improve my professional life.
Author
Gianluca Piccolo
Full Stack Developer at Wuerth Phoenix. I love questioning myself, find new challenges to learn and new adventures to grow up. PHP lover trying to expand my skills studying new languages and tools to improve my professional life.
The popular open source software suite GLPI, an acronym for Gestionnaire Libre de Parc Informatique, has been part of the NetEye ecosystem since its beginnings, more than 15 years ago. GLPI includes a comprehensive, pre-configured IT Asset management database, an Read More
In GLPI Remote Inventory - Part 1 I described how to perform a remote inventory of Linux machines. Here in Part 2 I'll describe instead how to perform a remote inventory on Windows machines using the WinRM (Windows Remote Management) Read More
Since NetEye version 4.29, the GLPI module has been upgraded to version 10. With this update GLPI introduced a new feature, making it possible to perform agentless inventories. Given the wide interest regarding this new feature from many of our Read More
We all know that NetEye can grant access to its Web Interface through local users, or through the use of LDAP queries that can filter and grant GUI access to users or groups of a given Active Directory domain. What Read More
A very important, fast-evolving area during the latest NetEye releases has been multi-tenancy. In a system with many tenants, the most complex aspect is probably the proper and orderly management of user permissions. To help administrators in this task, we Read More