diff options
-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); } |