diff options
author | Andreas Schneider <asn@samba.org> | 2010-09-07 14:58:19 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-10 18:20:55 +0100 |
commit | c91e756f8d406abee41f9644bd82353fdee347cb (patch) | |
tree | 81f278f909faa782a966f9814e827708988634ff /source3/rpc_client/cli_lsarpc.h | |
parent | 8f14229b28321e82f6f444d48f514c54cbc24f9b (diff) | |
download | samba-c91e756f8d406abee41f9644bd82353fdee347cb.tar.gz samba-c91e756f8d406abee41f9644bd82353fdee347cb.tar.bz2 samba-c91e756f8d406abee41f9644bd82353fdee347cb.zip |
s3-rpc_client: Added dcerpc_lsa_lookup_sids and dcerpc_lsa_lookup_sids3.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_lsarpc.h')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_lsarpc.h b/source3/rpc_client/cli_lsarpc.h index bdcbb69a78..fb7760a2bf 100644 --- a/source3/rpc_client/cli_lsarpc.h +++ b/source3/rpc_client/cli_lsarpc.h @@ -56,6 +56,38 @@ NTSTATUS rpccli_lsa_open_policy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, bool sec_qos, uint32 des_access, struct policy_handle *pol); +/** + * @brief Look up the names that correspond to an array of sids. + * + * @param[in] h The initialized binding handle for a dcerpc connection. + * + * @param[in] mem_ctx The memory context to use. + * + * @param[in] pol The opened domain policy handle. + * + * @param[in] num_sids The number of sids in the sids array to look up. + * + * @param[in] sids The array of sids to look up. + * + * @param[out] pdomains A pointer to store the refercenced domains. + * + * @param[out] pnames A pointer to an array for the translated names. + * + * @param[out] ptypes A pointer to an array for the types of the names. + * + * @param[out] result A pointer for the conversion result. + * + * @return A corresponding NTSTATUS error code. + */ +NTSTATUS dcerpc_lsa_lookup_sids(struct dcerpc_binding_handle *h, + TALLOC_CTX *mem_ctx, + struct policy_handle *pol, + int num_sids, + const struct dom_sid *sids, + char ***pdomains, + char ***pnames, + enum lsa_SidType **ptypes, + NTSTATUS *result); NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *pol, @@ -64,6 +96,39 @@ NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli, char ***pdomains, char ***pnames, enum lsa_SidType **ptypes); + +/** + * @brief Look up the names that correspond to an array of sids. + * + * @param[in] h The initialized binding handle for a dcerpc connection. + * + * @param[in] mem_ctx The memory context to use. + * + * @param[in] pol The opened domain policy handle. + * + * @param[in] num_sids The number of sids in the sids array to look up. + * + * @param[in] sids The array of sids to look up. + * + * @param[out] pdomains A pointer to store the refercenced domains. + * + * @param[out] pnames A pointer to an array for the translated names. + * + * @param[out] ptypes A pointer to an array for the types of the names. + * + * @param[out] result A pointer for the conversion result. + * + * @return A corresponding NTSTATUS error code. + */ +NTSTATUS dcerpc_lsa_lookup_sids3(struct dcerpc_binding_handle *h, + TALLOC_CTX *mem_ctx, + struct policy_handle *pol, + int num_sids, + const struct dom_sid *sids, + char ***pdomains, + char ***pnames, + enum lsa_SidType **ptypes, + NTSTATUS *result); NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *pol, @@ -72,6 +137,7 @@ NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli, char ***pdomains, char ***pnames, enum lsa_SidType **ptypes); + NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *pol, int num_names, |