diff options
author | Günther Deschner <gd@samba.org> | 2008-02-04 19:43:07 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-04 22:12:40 +0100 |
commit | 270ba9c238400f49d32c57a9a1bbde6ad63bb555 (patch) | |
tree | afe7a0a532093a3ad4bf89ced652eeea0b339096 /source3/utils/net_rpc_sh_acct.c | |
parent | b361956942618ec2f7c2efc60cb190858adbc516 (diff) | |
download | samba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.tar.gz samba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.tar.bz2 samba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.zip |
Use rpccli_samr_Connect2() all over the place.
Guenther
(This used to be commit bdf8d562621e1a09bf83e2009dec24966e7fdf22)
Diffstat (limited to 'source3/utils/net_rpc_sh_acct.c')
-rw-r--r-- | source3/utils/net_rpc_sh_acct.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c index 12da031d4b..5d5f7ad485 100644 --- a/source3/utils/net_rpc_sh_acct.c +++ b/source3/utils/net_rpc_sh_acct.c @@ -45,10 +45,11 @@ static NTSTATUS rpc_sh_acct_do(TALLOC_CTX *mem_ctx, ZERO_STRUCT(domain_pol); /* Get sam policy handle */ - - result = rpccli_samr_connect(pipe_hnd, mem_ctx, - MAXIMUM_ALLOWED_ACCESS, - &connect_pol); + + result = rpccli_samr_Connect2(pipe_hnd, mem_ctx, + pipe_hnd->cli->desthost, + MAXIMUM_ALLOWED_ACCESS, + &connect_pol); if (!NT_STATUS_IS_OK(result)) { goto done; } |