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 - [Doc]Provide explanation on escape character for match rules sss-certmap
Summary: [Doc]Provide explanation on escape character for match rules sss-certmap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.2
Assignee: Sumit Bose
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-22 10:02 UTC by amitkuma
Modified: 2023-03-24 15:22 UTC (History)
10 users (show)

Fixed In Version: sssd-2.2.3-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:56:04 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5088 0 None closed [Doc]Provide explanation on escape character for match rules sss-certmap 2020-07-16 09:46:55 UTC
Red Hat Issue Tracker RHELPLAN-26799 0 None None None 2023-03-24 15:21:59 UTC
Red Hat Issue Tracker SSSD-1749 0 None None None 2023-03-24 15:22:02 UTC
Red Hat Product Errata RHBA-2020:1863 0 None None None 2020-04-28 16:56:17 UTC

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


Note You need to log in before you can comment on or make changes to this bug.