From e2e334b2f51118cb14c7391c4e4e44ff247ef638 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Tue, 4 Aug 2015 09:25:08 -0400 Subject: LDAP: sanitize group name when used in filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cleanup_groups() uses DN of group in filter for ldbsearch. But the name might contain characters with special meaning for filtering like - "*()\/" Resolves: https://fedorahosted.org/sssd/ticket/2744 Reviewed-by: Pavel Březina --- Makefile.am | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7dc4875c..9cc5f384 100644 --- a/Makefile.am +++ b/Makefile.am @@ -219,6 +219,7 @@ if HAVE_CMOCKA sss_sifp-tests \ test_search_bases \ test_ldap_auth \ + test_ldap_id_cleanup \ test_sdap_access \ sdap-tests \ test_sysdb_views \ @@ -2145,6 +2146,27 @@ test_ldap_auth_LDADD = \ libsss_test_common.la \ $(NULL) +test_ldap_id_cleanup_SOURCES = \ + $(sssd_be_SOURCES) \ + src/tests/cmocka/test_ldap_id_cleanup.c \ + src/providers/ldap/ldap_id_cleanup.c \ + $(NULL) +test_ldap_id_cleanup_CFLAGS = \ + $(AM_CFLAGS) \ + -DUNIT_TESTING + $(NULL) +test_ldap_id_cleanup_LDADD = \ + $(PAM_LIBS) \ + $(CMOCKA_LIBS) \ + $(POPT_LIBS) \ + $(SSSD_LIBS) \ + $(CARES_LIBS) \ + $(KRB5_LIBS) \ + $(SSSD_INTERNAL_LTLIBS) \ + libsss_ldap_common.la \ + libsss_test_common.la \ + $(NULL) + test_sdap_access_SOURCES = \ $(sssd_be_SOURCES) \ src/tests/cmocka/test_sdap_access.c \ -- cgit