summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-11 13:17:05 +0200
committerAndrew Tridgell <tridge@samba.org>2010-04-27 15:24:41 +1000
commitcf73bc63e5c9335a2af8e0b46d2b12de5607f506 (patch)
tree06446ada5c08bebf2cbdd7fe7517c59980f2609e /source4/cldap_server
parent093d35661d25d7fd89ce46fef5922768c0c0ace7 (diff)
downloadsamba-cf73bc63e5c9335a2af8e0b46d2b12de5607f506.tar.gz
samba-cf73bc63e5c9335a2af8e0b46d2b12de5607f506.tar.bz2
samba-cf73bc63e5c9335a2af8e0b46d2b12de5607f506.zip
s4:CLDAP server - make use of the new "samdb_client_site_name" call
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 8f445d01a6..1993c1f7db 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -266,8 +266,9 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
flatname = lp_sam_name(lp_ctx);
server_site = samdb_server_site_name(sam_ctx, mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(server_site);
- /* FIXME: Hardcoded site name */
- client_site = "Default-First-Site-Name";
+ client_site = samdb_client_site_name(sam_ctx, mem_ctx,
+ src_address, NULL);
+ NT_STATUS_HAVE_NO_MEMORY(client_site);
load_interfaces(mem_ctx, lp_interfaces(lp_ctx), &ifaces);
pdc_ip = iface_best_ip(ifaces, src_address);