Bug 1660120

Summary: certmap fails when Issuer DN has comma in name [rhel-7.6.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 7.6CC: ftweedal, lkrispen, mhonek, nkinder, rmeggins, spichugi, tbordaz, vashirov
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.8.4-22.el7_6 Doc Type: Bug Fix
Doc Text:
Previously, Directory Server failed to compare the issuer distinguished name (DN) from a certificate and the issuer DN set in the /etc/dirsrv/slapd-<instance_name>/certmap.conf file, if the DN contained a character that must be escaped, such as a comma. As a consequence, binding to Directory Server using certificate-based authentication failed. This update fixes the problem. As a result, using a DN with escaped characters in the certificate mapping file works as expected.
Story Points: ---
Clone Of: 1653163 Environment:
Last Closed: 2019-01-29 17:23:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1653163    
Bug Blocks:    

Description RAD team bot copy to z-stream 2018-12-17 14:35:43 UTC
This bug has been copied from bug #1653163 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 5 Viktor Ashirov 2019-01-20 20:07:32 UTC
Build tested: 389-ds-base-1.3.8.4-22.el7_6.x86_64

In the cert:
Issuer: C = US, ST = Massachusetts, O = "Acme, Inc.", CN = "Acme, Inc."

In certmap.conf:
certmap default CN=Acme\, Inc.,O=Acme\, Inc.,ST=Massachusetts,C=US


In the logs:
[18/Jan/2019:15:03:50.246528988 +0000] conn=2 TLS1.3 128-bit AES-GCM; client CN=testuser,O=\22Acme, Inc.\22,ST=Massachusetts,C=US; issuer CN=\22Acme, Inc.\22,O=\22Acme, Inc.\22,ST=Massachusetts,C=US

User bind is successful, marking as VERIFIED, SanityOnly.

Comment 7 errata-xmlrpc 2019-01-29 17:23:03 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-2019:0179