diff options
author | Pavel Březina <pbrezina@redhat.com> | 2014-07-16 14:17:24 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-14 12:31:21 +0200 |
commit | 42a40a983c7a79037988adcf689993a6c7853b6b (patch) | |
tree | d4bd2aa79cfd4f603887d10bd965d7b92c4c332c | |
parent | 55f11a8d9f2228baad8a94ea46c7f3a86aac9941 (diff) | |
download | sssd-42a40a983c7a79037988adcf689993a6c7853b6b.tar.gz sssd-42a40a983c7a79037988adcf689993a6c7853b6b.tar.xz sssd-42a40a983c7a79037988adcf689993a6c7853b6b.zip |
sudo: replace asterisk with escape sequence in host filter
Resolves:
https://fedorahosted.org/sssd/ticket/2377
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
(cherry picked from commit 8c4abd227035169e75cb081424765e65c52b5266)
-rw-r--r-- | src/providers/ldap/sdap_sudo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index adbc37b6d..1b1faa1b5 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -387,7 +387,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, |