summaryrefslogtreecommitdiffstats
path: root/server/util/usertools.c
diff options
context:
space:
mode:
authorsbose <sbose@sles10.site>2009-09-09 12:10:53 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-09 09:14:25 -0400
commiteb5b5d56fbe3f1319ae8be8554d3a51c4900e5da (patch)
treee2f2267149ceed50bbec958114219892cff1ce72 /server/util/usertools.c
parent191b97b118b0c357209166c3c374dec33560ed3a (diff)
downloadsssd-eb5b5d56fbe3f1319ae8be8554d3a51c4900e5da.tar.gz
sssd-eb5b5d56fbe3f1319ae8be8554d3a51c4900e5da.tar.xz
sssd-eb5b5d56fbe3f1319ae8be8554d3a51c4900e5da.zip
more fixes for older libpcre versions
- older version of libpcre only support the Python syntax (?P<name>) for named subpatterns
Diffstat (limited to 'server/util/usertools.c')
-rw-r--r--server/util/usertools.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/util/usertools.c b/server/util/usertools.c
index 213483910..e4e941a68 100644
--- a/server/util/usertools.c
+++ b/server/util/usertools.c
@@ -64,16 +64,18 @@ int sss_names_init(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, struct sss_names
if (!ctx->re_pattern) {
ctx->re_pattern = talloc_strdup(ctx,
- "(?<name>[^@]+)@?(?<domain>[^@]*$)");
+ "(?P<name>[^@]+)@?(?P<domain>[^@]*$)");
if (!ctx->re_pattern) {
ret = ENOMEM;
goto done;
}
#ifdef HAVE_LIBPCRE_LESSER_THAN_7
+ } else {
DEBUG(2, ("This binary was build with a version of libpcre that does "
"not support non-unique named subpatterns.\n"));
DEBUG(2, ("Please make sure that your pattern [%s] only contains "
- "subpatterns with a unique name.\n", ctx->re_pattern));
+ "subpatterns with a unique name and uses "
+ "the Python syntax (?P<name>).\n", ctx->re_pattern));
#endif
}