mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
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.
This commit is contained in:
parent
39d612ff4c
commit
41716a8c13
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user