s3-winbind: Added a common rpc_rids_to_names function.
[samba.git] / source3 / winbindd / winbindd_rpc.h
index e0658a350589f0e032afc6436d92f53ca5209745..15ad6dab8939704c390bd0c146b61bc1aeb1d2a9 100644 (file)
@@ -67,4 +67,16 @@ NTSTATUS rpc_sid_to_name(TALLOC_CTX *mem_ctx,
                         char **pname,
                         enum lsa_SidType *ptype);
 
+/* Convert a bunch of rids to user or group names */
+NTSTATUS rpc_rids_to_names(TALLOC_CTX *mem_ctx,
+                          struct rpc_pipe_client *lsa_pipe,
+                          struct policy_handle *lsa_policy,
+                          struct winbindd_domain *domain,
+                          const struct dom_sid *sid,
+                          uint32_t *rids,
+                          size_t num_rids,
+                          char **pdomain_name,
+                          char ***pnames,
+                          enum lsa_SidType **ptypes);
+
 #endif /* _WINBINDD_RPC_H_ */