summaryrefslogtreecommitdiff
path: root/source4/rpc_server/netlogon
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-18 18:49:51 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-20 09:33:46 +0200
commit41716a8c137946728085b897cd2217e0d0431e7f (patch)
treea1fe64f8e8a205f7e7b4cfdc302bf11373c7abc5 /source4/rpc_server/netlogon
parent39d612ff4c9131d0f06894da80e739aedf6ffe14 (diff)
downloadsamba-41716a8c137946728085b897cd2217e0d0431e7f.tar.gz
samba-41716a8c137946728085b897cd2217e0d0431e7f.tar.bz2
samba-41716a8c137946728085b897cd2217e0d0431e7f.zip
s4:netlogon RPC - "fill_one_domain_info" - use "lp_workgroup" for the DC short domainname discovery
Here we don't need to use "lp_sam_name" since in this function we are always a DC.
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 596a2ee114..b920c13ae1 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1131,7 +1131,7 @@ static NTSTATUS fill_one_domain_info(TALLOC_CTX *mem_ctx,
}
if (is_local) {
- info->domainname.string = lp_sam_name(lp_ctx);
+ info->domainname.string = lp_workgroup(lp_ctx);
info->dns_domainname.string = lp_dnsdomain(lp_ctx);
info->domain_guid = samdb_result_guid(res, "objectGUID");
info->domain_sid = samdb_result_dom_sid(mem_ctx, res, "objectSid");