mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3-rpc_cli: Remove some unused wrapping code.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
d5693d99b8
commit
457c933ff0
@ -539,35 +539,6 @@ NTSTATUS dcerpc_lsa_lookup_sids3(struct dcerpc_binding_handle *h,
|
|||||||
result);
|
result);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
|
|
||||||
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 status;
|
|
||||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
|
||||||
|
|
||||||
status = dcerpc_lsa_lookup_sids_generic(cli->binding_handle,
|
|
||||||
mem_ctx,
|
|
||||||
pol,
|
|
||||||
num_sids,
|
|
||||||
sids,
|
|
||||||
pdomains,
|
|
||||||
pnames,
|
|
||||||
ptypes,
|
|
||||||
true,
|
|
||||||
&result);
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Lookup a list of names */
|
/** Lookup a list of names */
|
||||||
|
|
||||||
static NTSTATUS dcerpc_lsa_lookup_names_generic(struct dcerpc_binding_handle *h,
|
static NTSTATUS dcerpc_lsa_lookup_names_generic(struct dcerpc_binding_handle *h,
|
||||||
@ -790,33 +761,3 @@ NTSTATUS dcerpc_lsa_lookup_names4(struct dcerpc_binding_handle *h,
|
|||||||
true,
|
true,
|
||||||
result);
|
result);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
|
|
||||||
TALLOC_CTX *mem_ctx,
|
|
||||||
struct policy_handle *pol,
|
|
||||||
int num_names,
|
|
||||||
const char **names,
|
|
||||||
const char ***dom_names,
|
|
||||||
int level,
|
|
||||||
struct dom_sid **sids,
|
|
||||||
enum lsa_SidType **types)
|
|
||||||
{
|
|
||||||
NTSTATUS status;
|
|
||||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
|
||||||
|
|
||||||
status = dcerpc_lsa_lookup_names4(cli->binding_handle,
|
|
||||||
mem_ctx,
|
|
||||||
pol,
|
|
||||||
num_names,
|
|
||||||
names,
|
|
||||||
dom_names,
|
|
||||||
level,
|
|
||||||
sids,
|
|
||||||
types,
|
|
||||||
&result);
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
@ -158,15 +158,6 @@ NTSTATUS dcerpc_lsa_lookup_sids3(struct dcerpc_binding_handle *h,
|
|||||||
char ***pnames,
|
char ***pnames,
|
||||||
enum lsa_SidType **ptypes,
|
enum lsa_SidType **ptypes,
|
||||||
NTSTATUS *result);
|
NTSTATUS *result);
|
||||||
NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
|
|
||||||
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 dcerpc_lsa_lookup_names(struct dcerpc_binding_handle *h,
|
NTSTATUS dcerpc_lsa_lookup_names(struct dcerpc_binding_handle *h,
|
||||||
TALLOC_CTX *mem_ctx,
|
TALLOC_CTX *mem_ctx,
|
||||||
struct policy_handle *pol,
|
struct policy_handle *pol,
|
||||||
@ -196,14 +187,6 @@ NTSTATUS dcerpc_lsa_lookup_names4(struct dcerpc_binding_handle *h,
|
|||||||
struct dom_sid **sids,
|
struct dom_sid **sids,
|
||||||
enum lsa_SidType **types,
|
enum lsa_SidType **types,
|
||||||
NTSTATUS *result);
|
NTSTATUS *result);
|
||||||
NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
|
|
||||||
TALLOC_CTX *mem_ctx,
|
|
||||||
struct policy_handle *pol, int num_names,
|
|
||||||
const char **names,
|
|
||||||
const char ***dom_names,
|
|
||||||
int level,
|
|
||||||
struct dom_sid **sids,
|
|
||||||
enum lsa_SidType **types);
|
|
||||||
|
|
||||||
bool fetch_domain_sid( char *domain, char *remote_machine, struct dom_sid *psid);
|
bool fetch_domain_sid( char *domain, char *remote_machine, struct dom_sid *psid);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user