aboutsummaryrefslogtreecommitdiffstats
path: root/dfs_server
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2018-03-26 14:25:45 +1300
committerGarming Sam <garming@samba.org>2018-05-04 06:12:10 +0200
commit3fcb7680571621f229f37dc7ff6ee4df29750b85 (patch)
treec248ad6deede505090f06557a5cb9b394fb4caa1 /dfs_server
parent0b6186bfce3f0f251ea57c7a01d0bf608fdb1805 (diff)
downloadsamba-3fcb7680571621f229f37dc7ff6ee4df29750b85.tar.gz
samba-3fcb7680571621f229f37dc7ff6ee4df29750b85.tar.xz
samba-3fcb7680571621f229f37dc7ff6ee4df29750b85.zip
dsdb: Allow the disable of the Windows server site fallback
A usage in GetDCNameEx2 could return the wrong result. This may need to be fixed in other places. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13365 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'dfs_server')
-rw-r--r--dfs_server/dfs_server_ad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dfs_server/dfs_server_ad.c b/dfs_server/dfs_server_ad.c
index 04aa7e00ae3..84a19bd3805 100644
--- a/dfs_server/dfs_server_ad.c
+++ b/dfs_server/dfs_server_ad.c
@@ -602,7 +602,7 @@ static NTSTATUS dodc_referral(struct loadparm_context *lp_ctx,
}
}
- site_name = samdb_client_site_name(sam_ctx, r, client_str, NULL);
+ site_name = samdb_client_site_name(sam_ctx, r, client_str, NULL, true);
status = get_dcs(r, sam_ctx, site_name, need_fqdn, &set, 0);
if (!NT_STATUS_IS_OK(status)) {
@@ -713,7 +713,7 @@ static NTSTATUS dosysvol_referral(struct loadparm_context *lp_ctx,
}
}
- site_name = samdb_client_site_name(sam_ctx, r, client_str, NULL);
+ site_name = samdb_client_site_name(sam_ctx, r, client_str, NULL, true);
status = get_dcs(r, sam_ctx, site_name, need_fqdn, &set, 0);
if (!NT_STATUS_IS_OK(status)) {