diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-07-26 14:51:55 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-08-05 10:19:20 -0400 |
commit | a5fe74914ab920bfaed87c046c525ee7148623f2 (patch) | |
tree | 2b5a01741c70db139d47071d1de5b1ccebca978a /server/util/util.h | |
parent | 29d442dad6dcb93ffc193de6f7cfd402129d4fb3 (diff) | |
download | sssd-a5fe74914ab920bfaed87c046c525ee7148623f2.tar.gz sssd-a5fe74914ab920bfaed87c046c525ee7148623f2.tar.xz sssd-a5fe74914ab920bfaed87c046c525ee7148623f2.zip |
Move parsing of names and domains into util/
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__ */ |