From a5fe74914ab920bfaed87c046c525ee7148623f2 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 26 Jul 2009 14:51:55 +0200 Subject: Move parsing of names and domains into util/ --- server/util/util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'server/util/util.h') 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 #include #include +#include #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__ */ -- cgit