From 0aae1a691b1037156ce3907ea5777e568e30201c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 6 Mar 2009 03:11:20 -0500 Subject: Add userspace tools to manipulate accounts. The first functional command is sss_useradd (Name is temporary, while looking for a better one) --- server/tools/tools_util.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 server/tools/tools_util.h (limited to 'server/tools/tools_util.h') diff --git a/server/tools/tools_util.h b/server/tools/tools_util.h new file mode 100644 index 00000000..cf0e1fe9 --- /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__ */ -- cgit