summaryrefslogtreecommitdiffstats
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-08 10:21:25 +0100
committerGünther Deschner <gd@samba.org>2008-02-08 10:26:51 +0100
commitadeb94a9a6444facf330337142997210940c9137 (patch)
tree5e1b295c805dd06e7984c8b907fe8b346a2df28f /source3/libnet
parent99a134a74e1625f82eead6cb5649780aec787bef (diff)
downloadsamba-adeb94a9a6444facf330337142997210940c9137.tar.gz
samba-adeb94a9a6444facf330337142997210940c9137.tar.xz
samba-adeb94a9a6444facf330337142997210940c9137.zip
Use rpccli_lsa_QueryInfoPolicy() in libnet_join.
Guenther (This used to be commit 28ef55cbf1662dfe6b64a837ade830f5c864b4b9)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 2f8d3e3085f..07d4960ffd1 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -654,13 +654,16 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
}
if (!NT_STATUS_IS_OK(status)) {
- status = rpccli_lsa_query_info_policy(pipe_hnd, mem_ctx, &lsa_pol,
- 5,
- &r->out.netbios_domain_name,
- &r->out.domain_sid);
+ status = rpccli_lsa_QueryInfoPolicy(pipe_hnd, mem_ctx,
+ &lsa_pol,
+ LSA_POLICY_INFO_ACCOUNT_DOMAIN,
+ &info);
if (!NT_STATUS_IS_OK(status)) {
goto done;
}
+
+ r->out.netbios_domain_name = info->account_domain.name.string;
+ r->out.domain_sid = info->account_domain.sid;
}
rpccli_lsa_Close(pipe_hnd, mem_ctx, &lsa_pol);