From 8c4abd227035169e75cb081424765e65c52b5266 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Wed, 16 Jul 2014 14:17:24 +0200 Subject: sudo: replace asterisk with escape sequence in host filter Resolves: https://fedorahosted.org/sssd/ticket/2377 Reviewed-by: Jakub Hrozek --- src/providers/ldap/sdap_sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index 6809f743c..edef44208 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -386,7 +386,7 @@ static char *sdap_sudo_build_host_filter(TALLOC_CTX *mem_ctx, */ if (regexp) { filter = talloc_asprintf_append_buffer(filter, - "(|(%s=*\\\\*)(%s=*?*)(%s=*\\**)" + "(|(%s=*\\\\*)(%s=*?*)(%s=*\\2A*)" "(%s=*[*]*))", map[SDAP_AT_SUDO_HOST].name, map[SDAP_AT_SUDO_HOST].name, -- cgit