Bug 15642 - winbindd, net ads join and other things don't work on an ipv6 only host
Summary: winbindd, net ads join and other things don't work on an ipv6 only host
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 4.20.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Stefan Metzmacher
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 15:45 UTC by Stefan Metzmacher
Modified: 2024-05-10 01:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2024-05-07 15:45:54 UTC
'net ads join' fails on an ipv6 only system, because
ndr_push_NETLOGON_SAM_LOGON_RESPONSE_EX in store_cldap_reply() rejects
the ipv6 address (which is not really used).

Windows DCs return an ipv4 address for CLDAP responses over ipv6
(if no real ipv4 address is available it returns 127.0.0.1 as fallback).

So we can do the same locally in order to fill our cache.

I'm wondering why this was not found while fixing https://bugzilla.samba.org/show_bug.cgi?id=15325 ...
Comment 1 Samba QA Contact 2024-05-10 01:36:14 UTC
This bug was referenced in samba master:

712ffbffc03c7dcd551c1e22815ebe7c0b9b45d2