summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-11-20 15:48:48 -0500
committerJakub Hrozek <jhrozek@redhat.com>2012-11-22 17:11:26 +0100
commit7026b70797180b8fbe6c66638fcbe0e9f66027c1 (patch)
tree12d1df2a472cd2ab9a309f6bb3b13e4ec2d50c2c
parent287e76479d68db4134274d4a4fca5fe0fbc9a605 (diff)
downloadsssd-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
-rw-r--r--src/util/usertools.c9
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,