summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/tools_util.h')
-rw-r--r--server/tools/tools_util.h23
1 files changed, 23 insertions, 0 deletions
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);