fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 150 forks source link

Configuring basic auth from GLPI to Agent #2107

Open JuSt19 opened 7 years ago

JuSt19 commented 7 years ago

Hello,

We would like to configure a basic authentication for the URI of our FusionInventory GLPI server. We are using HTTPS without issues.

We need this feature to avoid unauthorized registrations in our server.

Our question is, where can we configure a user/pw on the server side in order to configure the user/password parameters in the agent?

Kind regards.

C-Duv commented 7 years ago

Have you tried placing login and password in the server configuration parameter? Something like:

server = https://user:passwd@glpi.example.com/plugins/fusioninventory

Edit: I had read your issue too fast, you want to know how to restrict access on the server side. What about using your web server (Apache, Nginx, etc.) capabilities on the ressource agents POST to?

GroobyKJ commented 2 years ago

bump, i have the same issue

GroobyKJ commented 2 years ago

Solved, i thought the parameters did not add up. I checked the file /glpi-agent/etc/agent.cfg and it misled me. When installing glpi agent, just add the USER and PASSWORD parameter. It works for example: msiexec /i C:\GLPI-Agent-1.4-x64.msi /quiet SERVER='https://xxx.xx/glpi' USER='xxx' PASSWORD='xxx'

C-Duv commented 2 years ago

You are not on the good project: this is the project for the "FusionInventory Agent" and you seems to be using the "GLPI Agent" (some kind of fork/alternative/competitor to the FusionInventory Agent).

GroobyKJ commented 2 years ago

thanks for the info. I think we can close this topic. the last answer was 4 years ago.

Greetings :) KJ