Blame SOURCES/0002-certmap-mention-special-regex-characters-in-man-page.patch

213fc2
From 21cb9fb28db1f2eb4ee770eb029bfe20233e4392 Mon Sep 17 00:00:00 2001
213fc2
From: Sumit Bose <sbose@redhat.com>
213fc2
Date: Thu, 12 Dec 2019 13:10:16 +0100
213fc2
Subject: [PATCH] certmap: mention special regex characters in man page
213fc2
MIME-Version: 1.0
213fc2
Content-Type: text/plain; charset=UTF-8
213fc2
Content-Transfer-Encoding: 8bit
213fc2
213fc2
Since some of the matching rules use regular expressions some characters
213fc2
must be escaped so that they can be used a ordinary characters in the
213fc2
rules.
213fc2
213fc2
Related to https://pagure.io/SSSD/sssd/issue/4127
213fc2
213fc2
Reviewed-by: Michal Židek <mzidek@redhat.com>
213fc2
---
213fc2
 src/man/sss-certmap.5.xml | 9 +++++++++
213fc2
 1 file changed, 9 insertions(+)
213fc2
213fc2
diff --git a/src/man/sss-certmap.5.xml b/src/man/sss-certmap.5.xml
213fc2
index db258d14a..10343625e 100644
213fc2
--- a/src/man/sss-certmap.5.xml
213fc2
+++ b/src/man/sss-certmap.5.xml
213fc2
@@ -92,6 +92,15 @@
213fc2
                     <para>
213fc2
                         Example: <SUBJECT>.*,DC=MY,DC=DOMAIN
213fc2
                     </para>
213fc2
+                    <para>
213fc2
+                        Please note that the characters "^.[$()|*+?{\" have a
213fc2
+                        special meaning in regular expressions and must be
213fc2
+                        escaped with the help of the '\' character so that they
213fc2
+                        are matched as ordinary characters.
213fc2
+                    </para>
213fc2
+                    <para>
213fc2
+                        Example: <SUBJECT>^CN=.* \(Admin\),DC=MY,DC=DOMAIN$
213fc2
+                    </para>
213fc2
                     </listitem>
213fc2
                 </varlistentry>
213fc2
                 <varlistentry>
213fc2
-- 
213fc2
2.20.1
213fc2