mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s4:cldap_server/netlogon.c - DS_SERVER_CLOSEST handling
DS_SERVER_CLOSEST is only set when the client and server site coincide. MS-NRPC 2.2.1.2.1 Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
fc26e29f8e
commit
b89374934f
@ -224,7 +224,6 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
|
||||
|
||||
server_type =
|
||||
DS_SERVER_DS | DS_SERVER_TIMESERV |
|
||||
DS_SERVER_CLOSEST |
|
||||
DS_SERVER_GOOD_TIMESERV;
|
||||
|
||||
#if 0
|
||||
@ -276,13 +275,17 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
|
||||
dns_domain);
|
||||
NT_STATUS_HAVE_NO_MEMORY(pdc_dns_name);
|
||||
flatname = lpcfg_workgroup(lp_ctx);
|
||||
|
||||
server_site = samdb_server_site_name(sam_ctx, mem_ctx);
|
||||
NT_STATUS_HAVE_NO_MEMORY(server_site);
|
||||
client_site = samdb_client_site_name(sam_ctx, mem_ctx,
|
||||
src_address, NULL);
|
||||
NT_STATUS_HAVE_NO_MEMORY(client_site);
|
||||
load_interface_list(mem_ctx, lp_ctx, &ifaces);
|
||||
if (strcasecmp(server_site, client_site) == 0) {
|
||||
server_type |= DS_SERVER_CLOSEST;
|
||||
}
|
||||
|
||||
load_interface_list(mem_ctx, lp_ctx, &ifaces);
|
||||
if (src_address) {
|
||||
pdc_ip = iface_list_best_ip(ifaces, src_address);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user