[SOLVED] kerberos error - Preauthentication failed

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Empbilly
Messages: 79
Registration: January 15, 2018 - 8:59 PM

November 8, 2018 - 4:27 PM

Hello,

I re-configured auth from my clients via kerberos. Some machines are not being recognized and the server log shows the following:

Code: Select all

Nov  8 11:33:26 wapt winbindd[6145]: [2018/11/08 11:33:26.387247,  0] ../source3/libsmb/cliconnect.c:1895(cli_session_setup_spnego_send)
Nov  8 11:33:26 wapt winbindd[6145]:   Kinit for WAPT$@... to access cifs/dc4....@... failed: Preauthentication failed
Configurations:

Installed version of WAPT: 1.6.2.7
Server OSLinux
OS of the administration machine/creation of packagesWindows 7

Do I need to re-register (wapt-get register) the machine? Can I do this remotely to all the machines in my park?
Last edited by empbilly on Dec 18, 2018 - 6:14 PM, edited 2 times.
Empbilly
Messages: 79
Registration: January 15, 2018 - 8:59 PM

November 12, 2018 - 7:42 PM

Any ideas or help are welcome!! :D
Empbilly
Messages: 79
Registration: January 15, 2018 - 8:59 PM

November 27, 2018 - 11:30

Wapt staff never got an error/issue like that?
Empbilly
Messages: 79
Registration: January 15, 2018 - 8:59 PM

November 30, 2018 - 2:49 PM

Hello,

I discovered some new information!!!!

I made the configuration following the tutorial: https://www.wapt.fr/fr/doc/Installation ... ebian.html

Before executing the commands below the server was part of the domain, but after executing the commands,

Code: Select all

sudo msktutil --server DOMAIN_CONTROLER --precreate --host $(hostname) -b cn=computers --service HTTP --description "host account for wapt server" --enctypes 24 -N
sudo msktutil --server DOMAIN_CONTROLER --auto-update --keytab /etc/nginx/http-krb5.keytab --host $(hostname) -N
it appears that the wapt server is removed from the domain.
root@wapt:/etc/samba# net ads testjoin
kerberos_kinit_password WAPT$@... failed: Preauthentication failed
ads_connect: No logon servers are currently available to service the logon request.
Join to domain is not valid: No logon servers are currently available to service the logon request.
but the host is successfully registered.
c:\>psexec.exe /acceptula -s wapt-get register

PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

Host correctly registered against server https://wapt....
Is this normal after configuring authentication via kerberos?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 17, 2018 - 10:42 PM

Samba is not used in wapt.

The tutorial asks you to create a keytab:

/etc/nginx/http-krb5.keytab

This is the one that will be used. No need to test with net ads testjoin
Empbilly
Messages: 79
Registration: January 15, 2018 - 8:59 PM

December 18, 2018 - 6:14 PM

Okay.

Thanks for your feedback!
Locked