Description of problem: Syntax check for ACI seems to work only when "(" is present.
Steps to Reproduce:
$ ldapmodify -h localhost -p 389 -D "cn=directory manager" -w Secret123 <<EOF dn: ou=people,dc=example,dc=com changetype: modify add: aci aci: invalid EOF modifying entry "ou=people,dc=example,dc=com"
$ ldapmodify -h localhost -p 389 -D "cn=directory manager" -w Secret123 <<EOF dn: ou=people,dc=example,dc=com changetype: modify add: aci aci: (invalid EOF
modifying entry "ou=people,dc=example,dc=com" ldap_modify: Invalid syntax (21) additional info: ACL Syntax Error(-5):(invalid
$ ldapsearch -h localhost -p 389 -D "cn=directory manager" -w Secret123 -b "ou=people,dc=example,dc=com" -LLL aci dn: ou=People,dc=example,dc=com aci: invalid
Actual results: "aci: invalid" is accepted
Expected results: "aci: invalid" should be refused with Invalid syntax (21) too.
invalid aci value patch 0001-Ticket-617-Possible-to-add-invalid-ACI-value.patch
Reviewed by Noriko (Thank you!!)
Pushed to master: commit 6041c77
Metadata Update from @anjain: - Issue assigned to anjain - Issue set to the milestone: 1.3.2 - 08/13 (August)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/617
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.