From: Günther Deschner Date: Mon, 14 Jul 2025 18:18:08 +0000 (+0200) Subject: nsswitch: support all known DS lookup flags in wbclient's wbcLookupDomainController() X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fremotes%2Fgitlab%2Fmaster;p=thirdparty%2Fsamba.git nsswitch: support all known DS lookup flags in wbclient's wbcLookupDomainController() Guenther Signed-off-by: Guenther Deschner Reviewed-by: Andreas Schneider Autobuild-User(master): Günther Deschner Autobuild-Date(master): Tue Aug 12 08:26:55 UTC 2025 on atb-devel-224 --- diff --git a/nsswitch/libwbclient/wbclient.h b/nsswitch/libwbclient/wbclient.h index 31a7e492098..0b1c740b39b 100644 --- a/nsswitch/libwbclient/wbclient.h +++ b/nsswitch/libwbclient/wbclient.h @@ -1548,6 +1548,10 @@ wbcErr wbcListTrusts(struct wbcDomainInfo **domains, #define WBC_LOOKUP_DC_IS_DNS_NAME 0x00020000 #define WBC_LOOKUP_DC_TRY_NEXTCLOSEST_SITE 0x00040000 #define WBC_LOOKUP_DC_DS_6_REQUIRED 0x00080000 +#define WBC_LOOKUP_DC_WEB_REQUIRED 0x00100000 +#define WBC_LOOKUP_DC_DS_8_REQUIRED 0x00200000 +#define WBC_LOOKUP_DC_DS_9_REQUIRED 0x00400000 +#define WBC_LOOKUP_DC_DS_10_REQUIRED 0x00800000 #define WBC_LOOKUP_DC_RETURN_DNS_NAME 0x40000000 #define WBC_LOOKUP_DC_RETURN_FLAT_NAME 0x80000000 diff --git a/source3/winbindd/winbindd_dsgetdcname.c b/source3/winbindd/winbindd_dsgetdcname.c index 9dadeab863b..9971d8b4cdb 100644 --- a/source3/winbindd/winbindd_dsgetdcname.c +++ b/source3/winbindd/winbindd_dsgetdcname.c @@ -181,6 +181,14 @@ static uint32_t get_dsgetdc_flags(uint32_t wbc_flags) DS_TRY_NEXTCLOSEST_SITE }, { WBC_LOOKUP_DC_DS_6_REQUIRED, DS_DIRECTORY_SERVICE_6_REQUIRED }, + { WBC_LOOKUP_DC_WEB_REQUIRED, + DS_WEB_SERVICE_REQUIRED }, + { WBC_LOOKUP_DC_DS_8_REQUIRED, + DS_DIRECTORY_SERVICE_8_REQUIRED }, + { WBC_LOOKUP_DC_DS_9_REQUIRED, + DS_DIRECTORY_SERVICE_9_REQUIRED }, + { WBC_LOOKUP_DC_DS_10_REQUIRED, + DS_DIRECTORY_SERVICE_10_REQUIRED }, { WBC_LOOKUP_DC_RETURN_DNS_NAME, DS_RETURN_DNS_NAME }, { WBC_LOOKUP_DC_RETURN_FLAT_NAME,