diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-06 03:11:20 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-03-06 11:13:07 -0500 |
commit | 0aae1a691b1037156ce3907ea5777e568e30201c (patch) | |
tree | f7ef06f0207e9e25b924605c4c866c4c980b5154 /server/tools/tools_util.h | |
parent | 6b06539cfd1e95bfefe3e8bc107d2b85fff97109 (diff) | |
download | sssd-0aae1a691b1037156ce3907ea5777e568e30201c.tar.gz sssd-0aae1a691b1037156ce3907ea5777e568e30201c.tar.xz sssd-0aae1a691b1037156ce3907ea5777e568e30201c.zip |
Add userspace tools to manipulate accounts.
The first functional command is sss_useradd
(Name is temporary, while looking for a better one)
Diffstat (limited to 'server/tools/tools_util.h')
-rw-r--r-- | server/tools/tools_util.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/tools/tools_util.h b/server/tools/tools_util.h new file mode 100644 index 000000000..cf0e1fe92 --- /dev/null +++ b/server/tools/tools_util.h @@ -0,0 +1,21 @@ +#ifndef __TOOLS_UTIL_H__ +#define __TOOLS_UTIL_H__ + +#define UID_NOT_SET 0 +#define GID_NOT_SET 0 + +struct tools_ctx { + struct tevent_context *ev; + struct confdb_ctx *confdb; + struct sysdb_ctx *sysdb; + + struct btreemap *domains; +}; + +int check_user_name_unique(struct tools_ctx *ctx, const char *name); +int check_group_name_unique(struct tools_ctx *ctx, const char *name); +int setup_db(struct tools_ctx **ctx); + +void usage(poptContext pc, const char *error); + +#endif /* __TOOLS_UTIL_H__ */ |