diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-20 15:48:48 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-22 17:11:26 +0100 |
commit | 7026b70797180b8fbe6c66638fcbe0e9f66027c1 (patch) | |
tree | 12d1df2a472cd2ab9a309f6bb3b13e4ec2d50c2c /src | |
parent | 287e76479d68db4134274d4a4fca5fe0fbc9a605 (diff) | |
download | sssd-7026b70797180b8fbe6c66638fcbe0e9f66027c1.tar.gz sssd-7026b70797180b8fbe6c66638fcbe0e9f66027c1.tar.bz2 sssd-7026b70797180b8fbe6c66638fcbe0e9f66027c1.zip |
Handle compiling FQDN regular expression with old pcre gracefully
https://fedorahosted.org/sssd/ticket/1661
Diffstat (limited to 'src')
-rw-r--r-- | src/util/usertools.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/usertools.c b/src/util/usertools.c index b8715fe2..0a657a18 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, |