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 2023-06-15 16:02:53

sammaruab
Member
Registered: 2023-06-15
Posts: 5

Problème installation Agent GLPI

Bonjour, j'ai installé l'agent GLPI sur windows avec la commande : C:\>msiexec /i GLPI-Agent-1.4-x64.msi /quiet SERVER="h..ps://monserveur/glpi/front/inventory.php" NO_SSL_CHECK=1 RUNNOW=1

et pourtant rien ne remonte dans l'inventaire et quand je regarde les logs :

[Thu Jun 15 11:02:57 2023][info] target server0: server h..ps://monserveur/glpi/front/inventory.php
[Thu Jun 15 11:02:57 2023][info] sending prolog request to server0
[Thu Jun 15 11:02:57 2023][info] [http client] SSL Client warning: Peer certificate not verified
[Thu Jun 15 11:02:57 2023][info] [http client] SSL Client info: Cert-Issuer: '/CN=localhost', Cert-Subject: '/CN=localhost', Version: 'TLSv1_3', Cipher: 'TLS_AES_256_GCM_SHA384'
[Thu Jun 15 11:02:57 2023][info] [http client] SSL server certificate fingerprint: sha256$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[Thu Jun 15 11:02:57 2023][info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[Thu Jun 15 11:02:57 2023][error] [http client] authentication required, no credentials available
[Thu Jun 15 11:02:57 2023][error] No answer from server at h..ps://monserveur/glpi/front/inventory.php
[Thu Jun 15 11:02:57 2023][info] target server0: next run: Thu Jun 15 11:06:57 2023 - h..ps://monserveur/glpi/front/inventory.php
[Thu Jun 15 11:02:57 2023][info] GLPI Agent memory usage: WSS=3301376 PFU=116514816


Des idées ?

Last edited by sammaruab (2023-06-15 16:06:01)

Offline

#2 2023-06-16 15:25:55

Chico008
Member
Registered: 2022-12-14
Posts: 384

Re: Problème installation Agent GLPI

[Thu Jun 15 11:02:57 2023][error] [http client] authentication required, no credentials available

t'a mis un système de SSO sur ton site ? (GSSAPI, kerberos, etc)

Offline

#3 2023-06-19 09:25:29

sammaruab
Member
Registered: 2023-06-15
Posts: 5

Re: Problème installation Agent GLPI

Bonjour Chico008, oui j'ai mis un système de SSO Xampp sur mon site mais je ne sais pas si je l'ai bien configuré :

Voici la config :

#glpi configuration pour le SSO
 <Directory "C:/xampp/htdocs/glpi_test">
  Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  AllowOverride FileInfo AuthConfig Limit 
  <IfModule authnz_sspi_module>
      AuthName "Accès par SSO"
      AuthType SSPI
      SSPIAuth On
      SSPIAuthoritative On
      SSPIOfferBasic On
      # Should you need to force the login prompt, uncomment the next line
      #SSPIBasicPreferred On
      SSPIOfferSSPI On
      SSPIOmitDomain On
      require valid-sspi-user
  </IfModule>
</Directory> 

Je me suis inspiré de : h..ps://forum.glpi-project.org/viewtopic.php?id=149919

Last edited by sammaruab (2023-06-19 12:13:48)

Offline

#4 2023-06-19 16:35:56

Chico008
Member
Registered: 2022-12-14
Posts: 384

Re: Problème installation Agent GLPI

Dans ce cas c'est normal, car les agents ne sont pas capable de resoudre une authentification SSO.
il faut, dans la conf de ton site,
- ajouter un directory specifique a l'url de tes agents, qui ne fait pas SSO
- ou prevoir une exeception dans ton directory de base, pour bypasser le SSO selon le header speciffique de tes agents. (solution vu sur le forum y'a quelques mois, pas tester)

Offline

#5 2023-06-19 17:12:52

sammaruab
Member
Registered: 2023-06-15
Posts: 5

Re: Problème installation Agent GLPI

Re Chico008, merci beaucoup pour tes precisions ça marche ! (bypass)

Offline

Board footer

Powered by FluxBB