Skip to content

Commit 82dd1ee

Browse files
committed
nsswitch: support all known DS lookup flags in wbclient's wbcLookupDomainController()
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Aug 12 08:26:55 UTC 2025 on atb-devel-224
1 parent 0f3f5db commit 82dd1ee

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

nsswitch/libwbclient/wbclient.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,10 @@ wbcErr wbcListTrusts(struct wbcDomainInfo **domains,
15481548
#define WBC_LOOKUP_DC_IS_DNS_NAME 0x00020000
15491549
#define WBC_LOOKUP_DC_TRY_NEXTCLOSEST_SITE 0x00040000
15501550
#define WBC_LOOKUP_DC_DS_6_REQUIRED 0x00080000
1551+
#define WBC_LOOKUP_DC_WEB_REQUIRED 0x00100000
1552+
#define WBC_LOOKUP_DC_DS_8_REQUIRED 0x00200000
1553+
#define WBC_LOOKUP_DC_DS_9_REQUIRED 0x00400000
1554+
#define WBC_LOOKUP_DC_DS_10_REQUIRED 0x00800000
15511555
#define WBC_LOOKUP_DC_RETURN_DNS_NAME 0x40000000
15521556
#define WBC_LOOKUP_DC_RETURN_FLAT_NAME 0x80000000
15531557

source3/winbindd/winbindd_dsgetdcname.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ static uint32_t get_dsgetdc_flags(uint32_t wbc_flags)
181181
DS_TRY_NEXTCLOSEST_SITE },
182182
{ WBC_LOOKUP_DC_DS_6_REQUIRED,
183183
DS_DIRECTORY_SERVICE_6_REQUIRED },
184+
{ WBC_LOOKUP_DC_WEB_REQUIRED,
185+
DS_WEB_SERVICE_REQUIRED },
186+
{ WBC_LOOKUP_DC_DS_8_REQUIRED,
187+
DS_DIRECTORY_SERVICE_8_REQUIRED },
188+
{ WBC_LOOKUP_DC_DS_9_REQUIRED,
189+
DS_DIRECTORY_SERVICE_9_REQUIRED },
190+
{ WBC_LOOKUP_DC_DS_10_REQUIRED,
191+
DS_DIRECTORY_SERVICE_10_REQUIRED },
184192
{ WBC_LOOKUP_DC_RETURN_DNS_NAME,
185193
DS_RETURN_DNS_NAME },
186194
{ WBC_LOOKUP_DC_RETURN_FLAT_NAME,

0 commit comments

Comments
 (0)