diff options
author | Günther Deschner <gd@samba.org> | 2008-02-14 01:34:34 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-14 01:34:34 +0100 |
commit | 8f7cc004ffefbd9da3d34a3a7dfc3839bdaafd3c (patch) | |
tree | f7f2244185077bc99a2fc9206b3d2677a220f241 /source3/rpc_client | |
parent | 2b84f4119d0d5dc0eac0e3596260901e3dc3eefd (diff) | |
download | samba-8f7cc004ffefbd9da3d34a3a7dfc3839bdaafd3c.tar.gz samba-8f7cc004ffefbd9da3d34a3a7dfc3839bdaafd3c.tar.bz2 samba-8f7cc004ffefbd9da3d34a3a7dfc3839bdaafd3c.zip |
Remove unused marshalling for LSA_ENUM_ACCOUNTS.
Guenther
(This used to be commit 8c476ad51622f76bf8f03f6255369b8e19f24a72)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index c42938d6e9..20a0fe28b6 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -452,62 +452,6 @@ NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli, return result; } -/** Enumerate list of SIDs */ - -NTSTATUS rpccli_lsa_enum_sids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *pol, uint32 *enum_ctx, uint32 pref_max_length, - uint32 *num_sids, DOM_SID **sids) -{ - prs_struct qbuf, rbuf; - LSA_Q_ENUM_ACCOUNTS q; - LSA_R_ENUM_ACCOUNTS r; - NTSTATUS result; - int i; - - ZERO_STRUCT(q); - ZERO_STRUCT(r); - - init_lsa_q_enum_accounts(&q, pol, *enum_ctx, pref_max_length); - - CLI_DO_RPC( cli, mem_ctx, PI_LSARPC, LSA_ENUM_ACCOUNTS, - q, r, - qbuf, rbuf, - lsa_io_q_enum_accounts, - lsa_io_r_enum_accounts, - NT_STATUS_UNSUCCESSFUL); - - result = r.status; - - if (!NT_STATUS_IS_OK(result)) { - goto done; - } - - if (r.sids.num_entries==0) - goto done; - - /* Return output parameters */ - - *sids = TALLOC_ARRAY(mem_ctx, DOM_SID, r.sids.num_entries); - if (!*sids) { - DEBUG(0, ("(cli_lsa_enum_sids): out of memory\n")); - result = NT_STATUS_UNSUCCESSFUL; - goto done; - } - - /* Copy across names and sids */ - - for (i = 0; i < r.sids.num_entries; i++) { - sid_copy(&(*sids)[i], &r.sids.sid[i].sid); - } - - *num_sids= r.sids.num_entries; - *enum_ctx = r.enum_context; - - done: - - return result; -} - /** Enumerate user privileges * * @param cli Handle on an initialised SMB connection */ |