diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-11 11:25:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-12 15:25:50 +0100 |
commit | 7807de5693174ee018561a694c8b6baf292888e2 (patch) | |
tree | 317bdc2ebcb465abb65e9e14805d3ba157818d8f /source4/libcli/util | |
parent | dea7c4f999c157358338436ce1717ef8bf3f96e0 (diff) | |
download | samba-7807de5693174ee018561a694c8b6baf292888e2.tar.gz samba-7807de5693174ee018561a694c8b6baf292888e2.tar.bz2 samba-7807de5693174ee018561a694c8b6baf292888e2.zip |
s4:libcli/util/clilsa.c: make use of dcerpc_binding_handle stubs
metze
Diffstat (limited to 'source4/libcli/util')
-rw-r--r-- | source4/libcli/util/clilsa.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/libcli/util/clilsa.c b/source4/libcli/util/clilsa.c index 16967d73b0..fda8aa73b1 100644 --- a/source4/libcli/util/clilsa.c +++ b/source4/libcli/util/clilsa.c @@ -119,7 +119,7 @@ static NTSTATUS smblsa_connect(struct smbcli_state *cli) r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; r.out.handle = &lsa->handle; - status = dcerpc_lsa_OpenPolicy(lsa->pipe, lsa, &r); + status = dcerpc_lsa_OpenPolicy_r(lsa->pipe->binding_handle, lsa, &r); if (!NT_STATUS_IS_OK(status)) { talloc_free(lsa); return status; @@ -150,7 +150,7 @@ NTSTATUS smblsa_sid_privileges(struct smbcli_state *cli, struct dom_sid *sid, r.in.sid = sid; r.out.rights = rights; - return dcerpc_lsa_EnumAccountRights(cli->lsa->pipe, mem_ctx, &r); + return dcerpc_lsa_EnumAccountRights_r(cli->lsa->pipe->binding_handle, mem_ctx, &r); } @@ -234,7 +234,7 @@ NTSTATUS smblsa_lookup_sid(struct smbcli_state *cli, r.out.names = &names; r.out.domains = &domains; - status = dcerpc_lsa_LookupSids(cli->lsa->pipe, mem_ctx2, &r); + status = dcerpc_lsa_LookupSids_r(cli->lsa->pipe->binding_handle, mem_ctx2, &r); if (!NT_STATUS_IS_OK(status)) { talloc_free(mem_ctx2); return status; @@ -291,7 +291,7 @@ NTSTATUS smblsa_lookup_name(struct smbcli_state *cli, r.out.sids = &sids; r.out.domains = &domains; - status = dcerpc_lsa_LookupNames(cli->lsa->pipe, mem_ctx2, &r); + status = dcerpc_lsa_LookupNames_r(cli->lsa->pipe->binding_handle, mem_ctx2, &r); if (!NT_STATUS_IS_OK(status)) { talloc_free(mem_ctx2); return status; @@ -332,7 +332,7 @@ NTSTATUS smblsa_sid_add_privileges(struct smbcli_state *cli, struct dom_sid *sid r.in.sid = sid; r.in.rights = rights; - return dcerpc_lsa_AddAccountRights(cli->lsa->pipe, mem_ctx, &r); + return dcerpc_lsa_AddAccountRights_r(cli->lsa->pipe->binding_handle, mem_ctx, &r); } /* @@ -355,5 +355,5 @@ NTSTATUS smblsa_sid_del_privileges(struct smbcli_state *cli, struct dom_sid *sid r.in.remove_all = 0; r.in.rights = rights; - return dcerpc_lsa_RemoveAccountRights(cli->lsa->pipe, mem_ctx, &r); + return dcerpc_lsa_RemoveAccountRights_r(cli->lsa->pipe->binding_handle, mem_ctx, &r); } |