summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-07 19:40:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:20 -0500
commit9654f24751aef913870f710dc1e65edae6adee54 (patch)
treee8184704774208e30f2a158bfbcdb11c81fc3ded
parent0a91f1777aeda334a28f68afc9a13db0b76dc335 (diff)
downloadsamba-9654f24751aef913870f710dc1e65edae6adee54.tar.gz
samba-9654f24751aef913870f710dc1e65edae6adee54.tar.bz2
samba-9654f24751aef913870f710dc1e65edae6adee54.zip
r8211: fix some cldap replies
metze (This used to be commit 8ca5729ec80a9064d592503ae101d22e07c2da0a)
-rw-r--r--source4/cldap_server/netlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index f97e6d20a6..f2530c46be 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -93,14 +93,14 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
pdc_name = talloc_asprintf(mem_ctx, "\\\\%s", lp_netbios_name());
domain_uuid = samdb_result_guid(res[0], "objectGUID");
- realm = samdb_result_string(res[0], "realm", lp_realm());
+ realm = samdb_result_string(res[0], "dnsDomain", lp_realm());
dns_domain = samdb_result_string(res[0], "dnsDomain", lp_realm());
pdc_dns_name = talloc_asprintf(mem_ctx, "%s.%s",
strlower_talloc(mem_ctx, lp_netbios_name()),
dns_domain);
flatname = samdb_result_string(res[0], "name", lp_workgroup());
site_name = "Default-First-Site-Name";
- site_name2 = "";
+ site_name2 = "Default-First-Site-Name";
pdc_ip = iface_best_ip(src_address);
ZERO_STRUCTP(netlogon);
@@ -140,7 +140,7 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
netlogon->logon3.dns_domain = dns_domain;
netlogon->logon3.pdc_dns_name = pdc_dns_name;
netlogon->logon3.domain = flatname;
- netlogon->logon3.pdc_name = pdc_name;
+ netlogon->logon3.pdc_name = lp_netbios_name();
netlogon->logon3.user_name = user;
netlogon->logon3.site_name = site_name;
netlogon->logon3.site_name2 = site_name2;