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 1590305

Summary: ACL accepts wrong syntax
Product: Red Hat Enterprise Linux 8 Reporter: Amita Sharma <amsharma>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED WONTFIX QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 8.3CC: aborah, nkinder, pasik, spichugi, tbordaz, vashirov
Target Milestone: rcKeywords: Triaged
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-08 07:31:11 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 Amita Sharma 2018-06-12 11:57:52 UTC
Description of problem:
ACL accepts wrong syntax as well.

Version-Release number of selected component (if applicable):
[root@qeos-24 upstream]# rpm -qa | grep 389
389-ds-base-1.3.8.2-1.el7.x86_64
389-ds-base-debuginfo-1.3.8.2-1.el7.x86_64
389-ds-base-libs-1.3.8.2-1.el7.x86_64
389-ds-base-snmp-1.3.8.2-1.el7.x86_64


How reproducible:
Always

Steps to Reproduce:
[root@qeos-37 upstream]# ldapmodify -x -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF
> dn: dc=example,dc=com
> changetype: modify
> add: aci
> aci: (target=ldap:///dc=example,dc=com) (version 3.0; acl "abcd"; deny (read, search, compare, write) (userdn = "ldap://///anyone") ;)
> EOF
modifying entry "dc=example,dc=com"

NOTE ///// here in above aci.

[root@qeos-37 upstream]# ldapmodify -x -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF
> dn: dc=example,dc=com
> changetype: modify
> add: aci
> aci: (target=ldap:///dc=example,dc=com) (targetattr==*) (version 3.0; acl "abcd"; deny (read, search, compare, write) (userdn = "ldap://///anyone") ;)
> EOF
modifying entry "dc=example,dc=com"

NOTE (targetattr==*) in above aci. Used "==" instead of "="

[root@qeos-37 upstream]# ldapmodify -x -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF
> dn: dc=example,dc=com
> changetype: modify
> add: aci
> aci: (target=ldap:///dc=example,dc=com) (targetfilter==*) (version 3.0; acl "abcd"; deny (read, search, compare, write) (userdn = "ldap://///anyone") ;)
> EOF
modifying entry "dc=example,dc=com"

NOTE (targetfilter==*) in above aci. Used "==" instead of "="


Additional info:
Copy of https://bugzilla.redhat.com/show_bug.cgi?id=1590303

Comment 2 Amita Sharma 2018-06-12 12:12:32 UTC
*** Bug 1590303 has been marked as a duplicate of this bug. ***

Comment 3 Anuj Borah 2018-06-13 08:35:18 UTC
it is accepting 

target = ldap:///cn=Jeff Vedder,ou=Product Development,dc=example,dc=com)(targetattr=*)(version 3.0; acl "Name of the ACI";  deny(write)userdns="ldap:///anyone";)

Please Note: userdns it should be  userdn

Comment 5 Viktor Ashirov 2020-02-27 11:20:44 UTC
*** Bug 1691473 has been marked as a duplicate of this bug. ***

Comment 9 RHEL Program Management 2021-01-08 07:31:11 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.