[RISOLTO] WADS: l'agente wapt non si registra

Domande sul server WAPT / Richieste e assistenza relative al server WAPT
Regole del forum
Regole del forum della community
* Supporto in inglese su www.reddit.com/r/wapt
* Supporto della community in francese disponibile su questo forum
* Si prega di anteporre [RISOLTO] al titolo dell'argomento se è stato risolto.
* Si prega di non modificare un argomento contrassegnato con [RISOLTO]. Aprire un nuovo argomento facendo riferimento a quello precedente.
* Specificare la versione di WAPT installata, la versione completa e il numero di build (2.2.1.11957 / 2.2.2.12337 / ecc.) nonché l'edizione Enterprise/Discovery.
* Le versioni 1.8.2 e precedenti non sono più supportate. Le uniche domande accettate relative alla versione 1.8.2 riguardano l'aggiornamento a una versione supportata (2.1, 2.2, ecc.).
* Specificare il sistema operativo del server (Linux/Windows) e la versione (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specificare il sistema operativo della macchina di amministrazione/creazione dei pacchetti e della macchina con l'agente problematico, se applicabile (Windows 7/10/11/Debian 11/ecc.).
* Evitare di porre più domande quando si apre una discussione, altrimenti potrebbe essere ignorata. Se ci sono più discussioni, aprirle separatamente, preferibilmente una dopo l'altra e non tutte contemporaneamente (ovvero, non intasare il forum).
* Includere frammenti di codice, screenshot e altre immagini direttamente nel post. I link a Pastebin, Bitly e altri siti di terze parti verranno sistematicamente rimossi.
* Come in qualsiasi forum della community, il supporto è fornito volontariamente dai membri. Se si necessita di supporto commerciale, è possibile contattare il reparto vendite di Tranquil IT al numero 02.40.97.57.55
rlegrand
Messaggi: 10
Iscrizioni: 30 giugno 2026 - ore 15:37

3 luglio 2026 - 09:14

sfonteneau ha scritto: 2 luglio 2026 - 16:44 L'indirizzo 192.168.1.11 non è elencato in /etc/hosts? (configurazione errata)

Kinit sta cercando di connettersi a 192.168.1.11...
Ciao, ho modificato il file hosts per visualizzare l'indirizzo IP corretto

Ho riavviato i comandi sul server Linux:

Codice: Seleziona tutto

root@SRV-WAPT:/etc# kdestroy
root@SRV-WAPT:/etc# kinit <user>
Password for <user>@<domaine>: 
root@SRV-WAPT:/etc# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: <user>@<domaine>

Valid starting       Expires              Service principal
07/03/2026 08:53:28  07/03/2026 18:53:28  krbtgt/<domaine>@<domaine>
        renew until 07/04/2026 08:53:22
root@SRV-WAPT:/etc# curl -v --negotiate -u : https://<domaine>/api/v3/add_host_kerberos -k
* Host srv-wapt.<domaine>:443 was resolved.
* IPv6: (none)
* IPv4: 192.168.1.10
*   Trying 192.168.1.10:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Request CERT (13):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=srv-wapt.<domaine> 20240805-1439
*  start date: Aug  5 12:39:30 2024 GMT
*  expire date: Aug  3 12:39:30 2034 GMT
*  issuer: CN=srv-wapt.<domaine>
*  SSL certificate verify result: self-signed certificate in certificate chain (19), continuing anyway.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to srv-wapt.<domaine> (192.168.1.10) port 443
* using HTTP/1.x
* gss_init_sec_context() failed: Server not found in Kerberos database. 
* Server auth using Negotiate with user ''
> GET /api/v3/add_host_kerberos HTTP/1.1
> Host: srv-wapt.<domaine>.fr
> User-Agent: curl/8.14.1
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Request completely sent off
< HTTP/1.1 401 Unauthorized
< Server: nginx
< Date: Fri, 03 Jul 2026 06:53:26 GMT
< Content-Type: text/html
< Content-Length: 172
< Connection: keep-alive
* gss_init_sec_context() failed: Server not found in Kerberos database. 
< WWW-Authenticate: Negotiate
< Strict-Transport-Security: max-age=63072000
< 
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host srv-<domaine> left intact
Grazie per l'aiuto.
Avatar utente
sfontenau
Esperto WAPT
Messaggi: 2339
Registrato: 10 luglio 2014 - 23:52
Contatto:

3 luglio 2026 - 09:32

Buongiorno

Codice: Seleziona tutto

gss_init_sec_context() failed: Server not found in Kerberos database
Puoi verificare che l'account macchina sul tuo server Wapt esista ancora?

In tal caso, qual è il valore dell'attributo ServicePrincipalName?
rlegrand
Messaggi: 10
Iscrizioni: 30 giugno 2026 - ore 15:37

3 luglio 2026 - 10:26

sfonteneau ha scritto: 3 luglio 2026 - 09:32 Buongiorno

Codice: Seleziona tutto

gss_init_sec_context() failed: Server not found in Kerberos database
Puoi verificare che l'account macchina sul tuo server Wapt esista ancora?

In tal caso, qual è il valore dell'attributo ServicePrincipalName?
Potresti spiegarmi i passaggi da seguire?
Avatar utente
sfontenau
Esperto WAPT
Messaggi: 2339
Registrato: 10 luglio 2014 - 23:52
Contatto:

3 luglio 2026 - 10:28

Mi scuso per l'errore nel mio messaggio precedente:

lo correggo.

Puoi verificare se l'account del computer esiste ancora sul tuo server Active Directory?

In caso affermativo, qual è il valore dell'attributo ServicePrincipalName?
rlegrand
Messaggi: 10
Iscrizioni: 30 giugno 2026 - ore 15:37

3 luglio 2026 - 10:48

sfonteneau ha scritto: 3 luglio 2026 - 10:28 Scusa, errore nel mio messaggio precedente:

lo correggo:

Puoi verificare che l'account del computer nel tuo server Active Directory esista ancora?

In tal caso, qual è il valore dell'attributo ServicePrincipalName?
Ho un account amministratore Wapt nel nostro Active Directory, ma non vedo un account macchina corrispondente.
Avatar utente
sfontenau
Esperto WAPT
Messaggi: 2339
Registrato: 10 luglio 2014 - 23:52
Contatto:

3 luglio 2026 - 11:01

Il problema è questo... a quanto pare stai usando Kerberos ma non hai un account macchina WAPT nel tuo Active Directory.

Hai un file /etc/nginx/http-krb5.keytab sul tuo server WAPT?
rlegrand
Messaggi: 10
Iscrizioni: 30 giugno 2026 - ore 15:37

3 luglio 2026 - 11:40

sfonteneau ha scritto: 3 lug 2026 - 11:01 Il problema è lì... a quanto pare stai usando Kerberos ma non hai un account macchina WAPT nel tuo Active Directory.

Hai un file /etc/nginx/http-krb5.keytab sul tuo server WAPT?
Non ho installato il server WAPT, quindi sto solo facendo delle prove e scoprendo come funziona :D

Fino ad ora, l'installazione e la registrazione delle workstation sul server WAPT funzionavano correttamente. Per questo motivo, sto indagando su cosa possa essere cambiato da parte nostra che ne abbia causato l'interruzione.

Sul server WAP è presente il file /etc/nginx/http-krb5.keytab
Avatar utente
sfontenau
Esperto WAPT
Messaggi: 2339
Registrato: 10 luglio 2014 - 23:52
Contatto:

3 luglio 2026 - 11:53

Se è presente un file keytab, significa che in passato esisteva un account wapt in Active Directory.

È possibile eliminare il file keytab ed eseguire postconf per forzarne la ricreazione (fare attenzione a non eliminare successivamente l'account della macchina :) ).
rlegrand
Messaggi: 10
Iscrizioni: 30 giugno 2026 - ore 15:37

3 luglio 2026 - 13:58

sfonteneau ha scritto: 3 luglio 2026 - 11:53 Se hai un file keytab, significa che a un certo punto c'era un account wapt in Active Directory.

Puoi eliminare il keytab ed eseguire un comando postconf per forzarne la ricreazione ((fai attenzione a non eliminare l'account della macchina in seguito :) )).
Problema risolto, ho seguito le tue istruzioni e l'account della macchina è stato creato.

Grazie infinite per il vostro aiuto e supporto!

Buona giornata.
Bloccato