From 506dc899b26eea7b3115748b6311e8a07fb16909 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2010 16:25:07 +0200 Subject: s3-winbind: Added a common rpc_sid_to_name function. --- source3/winbindd/winbindd_rpc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/winbindd/winbindd_rpc.h') diff --git a/source3/winbindd/winbindd_rpc.h b/source3/winbindd/winbindd_rpc.h index 99006d4655..e0658a3505 100644 --- a/source3/winbindd/winbindd_rpc.h +++ b/source3/winbindd/winbindd_rpc.h @@ -57,4 +57,14 @@ NTSTATUS rpc_name_to_sid(TALLOC_CTX *mem_ctx, struct dom_sid *psid, enum lsa_SidType *ptype); +/* Convert a domain SID to a user or group name */ +NTSTATUS rpc_sid_to_name(TALLOC_CTX *mem_ctx, + struct rpc_pipe_client *lsa_pipe, + struct policy_handle *lsa_policy, + struct winbindd_domain *domain, + const struct dom_sid *sid, + char **pdomain_name, + char **pname, + enum lsa_SidType *ptype); + #endif /* _WINBINDD_RPC_H_ */ -- cgit