diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-07-09 18:43:45 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-07-20 10:58:05 -0400 |
commit | 49d051dcce7fbc01111cf0eae7c1f45600cff516 (patch) | |
tree | 117ba6965bd4fafcd035ac611f8c68607ffc2fd0 /server/tools/tools_util.h | |
parent | 9bec63f4b9cb97c1ff1cf2ff448446ab1e59734d (diff) | |
download | sssd-49d051dcce7fbc01111cf0eae7c1f45600cff516.tar.gz sssd-49d051dcce7fbc01111cf0eae7c1f45600cff516.tar.xz sssd-49d051dcce7fbc01111cf0eae7c1f45600cff516.zip |
Start rationalizing user tools a bit
There is a lot of duplication in user tools.
First steps to remove as much duplication as possible.
Diffstat (limited to 'server/tools/tools_util.h')
-rw-r--r-- | server/tools/tools_util.h | 23 |
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); |