https://bugs.openldap.org/show_bug.cgi?id=9664
Issue ID: 9664 Summary: Hiding namingContexts in the root DSE, when these are not in small letters Product: OpenLDAP Version: 2.5.6 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: dpa-openldap@aegee.org Target Milestone: ---
Below are the ACL for the frontend database. They are supposed to hide the cn=krbconfig from the namingContexts on the root DSE.
dn: olcDatabase=frontend,cn=config objectClass: olcDatabaseConfig objectClass: olcFrontendConfig olcDatabase: frontend #olcAccess: to dn.base="" attrs=namingContexts val/distinguishedNameMatch="cn=krbcontainer" by * none olcAccess: to dn.base="" attrs=namingContexts val="cn=krbcontainer" by * none olcAccess: to dn.exact="" by * read
dn: olcDatabase=mdb,cn=config objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: mdb olcDbMaxSize: 10485760 olcSuffix: cn=krbcontainer olcRootDN: uid=zzz,cn=krbcontainer olcRootPW: zzz olcDbDirectory: ldap/uuu olcDbIndex: objectClass eq olcAccess: to dn.sub="cn=krbContainer" by * read
It does work!
However, if change the case in (container ⇒ Container): olcSuffix: cn=krbContainer
no matter how I set olcAccess in the frontend database, $ ldapsearch -xb "" -s base namingContexts
always prints dn: namingContexts: cn=krbContainer
In particular
olcAccess: to dn.base="" attrs=namingContexts val/distinguishedNameMatch="cn=krbcontainer" by * none
does not hide it.
• It shall be possible to find olcSuffix from the DSE/namingContexts, even if the suffix is mixCased.
Since the case is known at the time, when the rules are written, OpenLDAP shall offer an option for exact match, without converting data to lowercase. (as shown by sladp -d -1 )
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs_review
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |ondra@mistotebe.net
https://bugs.openldap.org/show_bug.cgi?id=9664
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.openldap.org/s | |how_bug.cgi?id=5540, | |https://bugs.openldap.org/s | |how_bug.cgi?id=8341
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/401
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.8 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=9664
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • 2958925c by Ondřej Kuzník at 2021-09-09T10:26:06+01:00 ITS#9664 Add normalised suffix into rootDSE for ACL, etc.
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 5eba9264 by Ondřej Kuzník at 2021-09-14T16:17:29+00:00 ITS#9664 Add normalised suffix into rootDSE for ACL, etc.
RE25:
• c0ccd606 by Ondřej Kuzník at 2021-09-14T16:17:46+00:00 ITS#9664 Add normalised suffix into rootDSE for ACL, etc.
https://bugs.openldap.org/show_bug.cgi?id=9664
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED