summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.h
blob: ef55dede0634085214a03b57b2564e60625efcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 sss_domain_info *domains;
};

int setup_db(struct tools_ctx **ctx);

void usage(poptContext pc, const char *error);

int parse_groups(TALLOC_CTX *mem_ctx, const char *optstr, char ***_out);

#endif  /* __TOOLS_UTIL_H__ */