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.3   
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.