From 49d051dcce7fbc01111cf0eae7c1f45600cff516 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 9 Jul 2009 18:43:45 -0400 Subject: Start rationalizing user tools a bit There is a lot of duplication in user tools. First steps to remove as much duplication as possible. --- server/tools/tools_util.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'server/tools/tools_util.h') diff --git a/server/tools/tools_util.h b/server/tools/tools_util.h index 0520731ad..5bf3b3840 100644 --- a/server/tools/tools_util.h +++ b/server/tools/tools_util.h @@ -48,6 +48,29 @@ struct tools_ctx { struct sss_domain_info *domains; }; +struct ops_ctx { + struct tools_ctx *ctx; + struct tevent_context *ev; + struct sss_domain_info *domain; + + const char *name; + uid_t uid; + gid_t gid; + char *gecos; + char *home; + char *shell; + struct sysdb_attrs *attrs; + + char **addgroups; + char **rmgroups; + char **groups; + int cur; + + struct sysdb_handle *handle; + int error; + bool done; +}; + int init_sss_tools(struct tools_ctx **ctx); int setup_db(struct tools_ctx **ctx); -- cgit