]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:winbindd: Resolve dc name using CLDAP also for ROLE_IPA_DC
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 23 Jul 2025 13:09:21 +0000 (15:09 +0200)
committerJule Anger <janger@samba.org>
Wed, 6 Aug 2025 11:46:17 +0000 (11:46 +0000)
commita8e2ea60831fca3e5dc6efea3520cea60bffdf9a
treef8b9f9be5beade2a439a8dea6d679fcb39cd0ae0
parent9ca7d637aae14c49fa82f3a7becf9b2c1c5f5bf8
s3:winbindd: Resolve dc name using CLDAP also for ROLE_IPA_DC

server role ROLE_IPA_DC (introduced in e2d5b4d) needs special handling
in dcip_check_name().  We should resolve the DC name using:
- CLDAP in dcip_check_name_ads()
instead of:
- NETBIOS in nbt_getdc() that fails if Windows is not providing netbios.

The impacted environment has:

domain->alt_name = example.com
domain->active_directory = 1
security = USER
server role = ROLE_IPA_DC

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15891

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Pair-programmed-with: Andreas Schneider <asn@samba.org>

Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 4921c3304e5e0480e5bb80a757b3f04b3b92c3b1)
source3/winbindd/winbindd_cm.c