DJoin cannot find domain controllers

Question about WAPT Server / Requêtes et aides autour du serveur Wapt
Règles du forum
Règles du forum communautaire
* English support on www.reddit.com/r/wapt
* Le support communautaire en français se fait sur ce forum
* Merci de préfixer le titre du topic par [RESOLU] s'il est résolu.
* Merci de ne pas modifier un topic qui est taggé [RESOLU]. Ouvrez un nouveau topic en référençant l'ancien
* Préciser version de WAPT installée, version complète ET numéro de build (2.2.1.11957 / 2.2.2.12337 / etc.) AINSI QUE l'édition Enterprise / Discovery
* Les versions 1.8.2 et antérieures ne sont plus maintenues. Les seules questions acceptées vis à vis de la version 1.8.2 sont liés à la mise à jour vers une version supportée (2.1, 2.2, etc.)
* Préciser OS du serveur (Linux / Windows) et version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019)
* Préciser OS de la machine d'administration/création des paquets et de la machine avec l'agent qui pose problème le cas échéant (Windows 7 / 10 / 11 / Debian 11 / etc.)
* Eviter de poser plusieurs questions lors de l'ouverture de topic, sinon il risque d'être ignorer. Si plusieurs sujet, ouvrir plusieurs topic, et de préférence les uns après les autres et pas tous en même temps (ie ne pas spammer le forum).
* Inclure directement les morceaux de code, les captures d'écran et autres images directement dans le post. Les liens vers les pastebin, les bitly et autres sites tierces seront systématiquement supprimés.
* Comme tout forum communautaire, le support est fait bénévolement par les membres. Si vous avez besoin d'un support commercial, vous pouvez contacter le service commercial Tranquil IT au 02.40.97.57.55
AdamBertok
Messages : 1
Inscription : 07 sept. 2026 - 15:09

08 sept. 2026 - 09:34

Dear Tranquil IT team,

Apologies in advance for the English-language post.

I would like to ask whether anyone else has run into the following issue. I believe this may be a potential bug currently present in the WAPT console.

The symptom is as follows:
When preparing a machine with djoin under the OS Deploy tab, we get the error message "Cannot find any domain controllers for <domain>."
djoin.png
djoin.png (12.65 Kio) Consulté 2076 fois
I suspect this may be related to the most recent Samba update.
BUG 15988: Samba internal DNS service doesn't handle switch from UDP to TCP when packet is larger than 4k
https://bugzilla.samba.org/show_bug.cgi?id=15988

According to the bug, Samba's internal DNS service redirects any UDP packet larger than 512 bytes to the TCP protocol.

Evidence:
Every time, I try to refresh and get domain controllers we the following traffic happen in the background.
wireshark.png
wireshark.png (3.03 Kio) Consulté 2076 fois
WAPT console try to request _ldap._tcp.<domain>.
Samba internal dns response with the same payload indicating the TC flag, which should trigger TCP request from client side, but that request never happen.
In our case, the DNS response to this packet is larger than 512 bytes.
wireshark-tc.png
wireshark-tc.png (7.11 Kio) Consulté 2076 fois
The nslookup _ldap._tcp.<domain> from windows or command line just working fine.

Environment:
Samba:
- Debian 13 Trixie
- Samba Version: Sernet 4.24.6-4

WAPT:
- Debian 13 Trixie
- WAPT version: 2.6.1.17765

This issue is currently affecting several of our WAPT servers. Has anyone else run into this problem as well?

Thank you in advance!
Avatar de l’utilisateur
dcardon
Expert WAPT
Messages : 1991
Inscription : 18 juin 2014 - 09:58
Localisation : Saint Sébastien sur Loire
Contact :

08 sept. 2026 - 15:00

Hi Adam,

yes it definitely looks like a bug in the DNS handling. Actually one of my colleage Andréas dealt with the Samba team with the internal DNS bug where udp to tcp switch for large packet was not properly handled. At that time Andréas contributed a patch to switch to tcp for packet larger than 1232.

Recently someone had issue with router refusing udp packets larger than 512, so it was lowered even more in the last version of Samba :-)

There seems indeed that there is a bug in the udp to tcp switch in the code of the DNS processing in the mORMot2 library. There is someone here looking into it and I'll get back to you soon.

Thanks for reporting the issue.

Denis
Denis Cardon - Tranquil IT
Communiquez autour de vous sur WAPT! Envoyez nous vos url de blog et d'articles dans la catégorie votre avis du forum, nous les mettrons en avant sur le site WAPT
Répondre