]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nsswitch: support all known DS lookup flags in wbclient's wbcLookupDomainController()
authorGünther Deschner <gd@samba.org>
Mon, 14 Jul 2025 18:18:08 +0000 (20:18 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 12 Aug 2025 08:26:55 +0000 (08:26 +0000)
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

nsswitch/libwbclient/wbclient.h
source3/winbindd/winbindd_dsgetdcname.c

index 31a7e4920980ce4c7e93b8212d5f0e4607ba4508..0b1c740b39bca43a34f8614dcfd40c18522cdb88 100644 (file)
@@ -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
 
index 9dadeab863beb67a5a05fbc93b06090b0fd5785d..9971d8b4cdb0d13b29134ca191b4c5d7c97d553d 100644 (file)
@@ -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,