Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1744500

Summary: [Doc]Provide explanation on escape character for match rules sss-certmap
Product: Red Hat Enterprise Linux 8 Reporter: amitkuma
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: grajaiya, jhrozek, lslebodn, mzidek, pbrezina, sbose, sgoveas, spoore, thalman, tscherf
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.2.3-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:56:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 5 amitkuma 2019-08-22 12:22:36 UTC
Thanks sumit.
Will convey the information to customer.

Comment 6 Sumit Bose 2019-08-22 18:58:50 UTC
Although the customer issue is solved this ticket should be used to track some improvements to the sss-certmap man page and to
https://docs.pagure.org/SSSD.sssd/design_pages/certmaps_for_LDAP_AD_file.html especially about regular expressions and about escaping special characters.

Comment 7 Jakub Hrozek 2019-08-22 19:09:12 UTC
(In reply to Sumit Bose from comment #6)
> Although the customer issue is solved this ticket should be used to track
> some improvements to the sss-certmap man page and to
> https://docs.pagure.org/SSSD.sssd/design_pages/certmaps_for_LDAP_AD_file.
> html especially about regular expressions and about escaping special
> characters.

I would suggest to rename the bug, then and provide a summary. Otherwise we risk someone going 'oh, I bet my customer is hitting THIS' and linking a case here without reviewing the whole bugzilla.

Comment 8 amitkuma 2019-08-23 07:21:34 UTC
Worked:
[certmap/localDomain/user]
matchrule = <SUBJECT>CN=.*\(user\).*<EKU>msScLogin

Does not work:
[certmap/localDomain/user]
matchrule = <SUBJECT>CN=.*(user).*<EKU>msScLogin

1. Should have text the describe the situation.
- https://docs.pagure.org/SSSD.sssd/design_pages/certmaps_for_LDAP_AD_file.html 
- # man sss-certmap 
2. If possible sssd should provide warning in logs clarifying escape character need to be added.

Comment 9 Sumit Bose 2019-12-06 11:53:34 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/4127

Comment 10 Michal Zidek 2019-12-14 00:59:40 UTC
master:
21cb9fb

Comment 12 Scott Poore 2020-01-02 17:50:46 UTC
Verified:

Version ::

sssd-2.2.3-6.el8.x86_64
libsss_certmap-2.2.3-6.el8.x86_64

Results ::

[root@rhel8-5 sssd]# man sss-certmap|egrep "Admin|Please note that the characters"
           Please note that the characters "^.[$()|*+?{\" have a special meaning in regular expressions and must be escaped with the help of the '\'
           Example: <SUBJECT>^CN=.* \(Admin\),DC=MY,DC=DOMAIN$

Comment 15 errata-xmlrpc 2020-04-28 16:56:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1863