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

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