]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: make use of ads_connect_cldap_only() in dcip_check_name_ads()
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Mar 2024 16:48:34 +0000 (17:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:18:31 +0000 (10:18 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cm.c

index aebb4561ae8bd28954c3ac1f22993d02d5fcf0ee..5f8018e996e13c6def87516c1a13ccdfd82a7400 100644 (file)
@@ -1123,11 +1123,10 @@ static bool dcip_check_name_ads(const struct winbindd_domain *domain,
                ads_status = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
                goto out;
        }
-       ads->auth.flags |= ADS_AUTH_NO_BIND;
        ads->config.flags |= request_flags;
        ads->server.no_fallback = true;
 
-       ads_status = ads_connect(ads);
+       ads_status = ads_connect_cldap_only(ads);
        if (!ADS_ERR_OK(ads_status)) {
                goto out;
        }