diff options
Diffstat (limited to 'server/util/util.h')
-rw-r--r-- | server/util/util.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h index 82c0be226..c4e3e49db 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -9,6 +9,7 @@ #include <errno.h> #include <limits.h> #include <time.h> +#include <pcre.h> #include "config.h" #include "talloc.h" #include "tevent.h" @@ -144,4 +145,19 @@ int password_destructor(void *memctx); /* from usertools.c */ char *get_username_from_uid(TALLOC_CTX *mem_ctx, uid_t uid); +struct sss_names_ctx { + char *re_pattern; + char *fq_fmt; + + pcre *re; +}; + +int sss_names_init(TALLOC_CTX *mem_ctx, + struct confdb_ctx *cdb, + struct sss_names_ctx **out); + +int sss_parse_name(TALLOC_CTX *memctx, + struct sss_names_ctx *snctx, + const char *orig, char **domain, char **name); + #endif /* __SSSD_UTIL_H__ */ |