https://bugs.openldap.org/show_bug.cgi?id=9752
Issue ID: 9752 Summary: Improperly normalized minCSN values in accesslog Product: OpenLDAP Version: 2.5.9 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: overlays Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
The CSN matching rules require normalized values to be provided. When normalized values are provided to attr_merge they must be distinct from the regular values. accesslog.c:1982 is providing the same berval in both regular and normalized value, which triggers an assert failure for this consistency check.
https://bugs.openldap.org/show_bug.cgi?id=9752
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to Howard Chu from comment #0)
The CSN matching rules require normalized values to be provided. When normalized values are provided to attr_merge they must be distinct from the regular values. accesslog.c:1982 is providing the same berval in both regular and normalized value, which triggers an assert failure for this consistency check.
The description above is wrong, the consistency check fails because the attribute was created without a normalized value, and then a modify is done with normalized value provided. This is the inconsistency that triggers the assert.
Fixed in master. Will probably require the log DB to be dumped and reloaded via slapcat/slapadd to make sure the minCSN attribute is created correctly.
https://bugs.openldap.org/show_bug.cgi?id=9752
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.10 Keywords|needs_review |
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • f476a063 by Howard Chu at 2021-11-19T05:17:52+00:00 ITS#9752 accesslog: fix inconsistently normalized minCSN
https://bugs.openldap.org/show_bug.cgi?id=9752
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 8c4c4ae0 by Howard Chu at 2021-11-19T16:22:06+00:00 ITS#9752 accesslog: fix inconsistently normalized minCSN
https://bugs.openldap.org/show_bug.cgi?id=9752
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- RE25:
• ea7932f0 by Howard Chu at 2021-11-19T16:23:01+00:00 ITS#9752 accesslog: fix inconsistently normalized minCSN
https://bugs.openldap.org/show_bug.cgi?id=9752
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED Status|RESOLVED |VERIFIED