Bug 1517886
| Summary: | double ca acl provoke console error. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | German Parente <gparente> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | afarley, cheimes, frenaud, ndehadra, pasik, pvoborni, rcritten, ssidhaye, tscherf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.6.5-2.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-06 13:09:05 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: | |||
|
Description
German Parente
2017-11-27 16:19:04 UTC
The issue is reproducible and is a valid bug. 1. create a caacl with ipa caacl-add acl1 2. create a different caacl with ipa caacl-add newcaacl 3. find the ipauniqueid of the 2nd caacl with ipa caacl-show newcaacl --all dn: ipaUniqueID=5b2b560a-d424-11e7-9a48-001a4a2313b8,cn=caacls,cn=ca,dc=example,dc=com ACL name: newcaacl Enabled: TRUE ipauniqueid: 5b2b560a-d424-11e7-9a48-001a4a2313b8 objectclass: ipaassociation, ipacaacl 4. edit the 2nd caacl with ldapmodify and replace its cn: ldapmodify -D cn=directory\ manager -w $PASSWORD dn: ipaUniqueID=5b2b560a-d424-11e7-9a48-001a4a2313b8,cn=caacls,cn=ca,dc=example,dc=com changetype: modify replace: cn cn: acl1 5. list the existing caacls ipa caacl-show acl1 ipa: ERROR: The search criteria was not specific enough. Expected 1 and found 2. The 4th step should have been forbidden, but as German said, the uniqueness attribute plugin does not operate on cn in the cn=caacls,cn=ca,$SUFFIX subtree. Upstream ticket: https://pagure.io/freeipa/issue/7304 Fixed upstream
master:
0e9ce73 Add uniqueness constraint on CA ACL name
Fixed upstream ipa-4-6: https://pagure.io/freeipa/c/2b442126cb7a47631cd6eb745790d2df944b2395 Build used for verification: [root@qe-blade-06 ~]# rpm -qa ipa-server sssd 389-ds-base pki-ca ipa-server-4.6.5-9.el7.x86_64 389-ds-base-1.3.9.1-9.el7.x86_64 sssd-1.16.4-21.el7.x86_64 pki-ca-10.5.16-2.el7.noarch [root@qe-blade-06 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.7 Beta (Maipo) [root@qe-blade-06 ~]# ls /var/lib/pki/ pki-tomcat Steps: [root@qe-blade-06 ~]# ipa caacl-add acl1 ------------------- Added CA ACL "acl1" ------------------- ACL name: acl1 Enabled: TRUE [root@qe-blade-06 ~]# ipa caacl-add newcaacl ----------------------- Added CA ACL "newcaacl" ----------------------- ACL name: newcaacl Enabled: TRUE [root@qe-blade-06 ~]# ipa caacl-show newcaacl --all dn: ipaUniqueID=745bcf02-8e7b-11e9-b3cb-00215e20333e,cn=caacls,cn=ca,dc=testrelm,dc=test ACL name: newcaacl Enabled: TRUE ipauniqueid: 745bcf02-8e7b-11e9-b3cb-00215e20333e objectclass: ipaassociation, ipacaacl [root@qe-blade-06 ~]# ldapmodify -D cn="Directory Manager" -w Secret123 dn: ipaUniqueID=745bcf02-8e7b-11e9-b3cb-00215e20333e,cn=caacls,cn=ca,dc=testrelm,dc=test changetype: modify replace: cn cn: acl1 modifying entry "ipaUniqueID=745bcf02-8e7b-11e9-b3cb-00215e20333e,cn=caacls,cn=ca,dc=testrelm,dc=test" ldap_modify: Constraint violation (19) additional info: Another entry with the same attribute value already exists (attribute: "cn ") <--------------------- ldapmodify operation fails since it is forbidden [root@qe-blade-06 ~]# ipa caacl-show acl1 ACL name: acl1 Enabled: TRUE [root@qe-blade-06 ~]# Based on above operations marking bugzilla verified. 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:2241 |