From 727fc5fd7f2d3fb724988f7676f991e8f7cbcb0d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 20 Nov 2012 15:48:48 -0500 Subject: Handle compiling FQDN regular expression with old pcre gracefully https://fedorahosted.org/sssd/ticket/1661 --- src/util/usertools.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util/usertools.c b/src/util/usertools.c index b8715fe23..0a657a182 100644 --- a/src/util/usertools.c +++ b/src/util/usertools.c @@ -84,6 +84,14 @@ static errno_t get_id_provider_default_re(TALLOC_CTX *mem_ctx, const char *conf_path, char **re_pattern) { +#ifdef HAVE_LIBPCRE_LESSER_THAN_7 + DEBUG(SSSDBG_MINOR_FAILURE, + ("The libpcre version on this system is too old. Only " + "the user@DOMAIN name fully qualified name format will " + "be supported\n")); + *re_pattern = NULL; + return EOK; +#else int ret; size_t c; char *id_provider = NULL; @@ -124,6 +132,7 @@ static errno_t get_id_provider_default_re(TALLOC_CTX *mem_ctx, done: talloc_free(id_provider); return ret; +#endif } int sss_names_init(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, -- cgit