https://bugs.openldap.org/show_bug.cgi?id=9915
Issue ID: 9915 Summary: Changing slapo-unique to use serialize causes cn=config replication to fail Product: OpenLDAP Version: 2.6.3 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: overlays Assignee: bugs@openldap.org Reporter: quanah@openldap.org Target Milestone: ---
I updated my slapo-unique configuration from:
olcUniqueURI: ldap:///?uid?sub?
to
olcUniqueURI: "serialize ldap:///?uid?sub?"
and replication of the config database fails with the following error:
syncrepl_null_callback: error code 0x50 syncrepl_entry: rid=001 be_modify olcOverlay={2}unique,olcDatabase={2}mdb,cn=config (80) syncrepl_entry: rid=001 be_modify failed (80)
https://bugs.openldap.org/show_bug.cgi?id=9915
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- This in part appears to be an issue where the configuration is replicated from a config node, as the olcUniqueURI doesn't appear to be parsed for validity in that scenario.
Trying to reload the config DB with serialize quoted as per the man page results in:
slapadd: could not add entry dn="olcOverlay={2}unique,olcDatabase={2}mdb,cn=config" (line=2582): <"serialize ldap:///?uid?sub?"> invalid ldap urilist
https://bugs.openldap.org/show_bug.cgi?id=9915
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Per the man page:
Keywords strict, ignore, and serialize have to be enclosed in quotes (") together with the URI.
https://bugs.openldap.org/show_bug.cgi?id=9915
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- man page fix:
With cn=config, you cannot use quotes around the values. The quotes only applies to deprecated slapd.conf configurations.
https://bugs.openldap.org/show_bug.cgi?id=9915
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.6.4 Assignee|bugs@openldap.org |quanah@openldap.org Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=9915
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/570
https://bugs.openldap.org/show_bug.cgi?id=9915
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.6.4 |2.5.14
https://bugs.openldap.org/show_bug.cgi?id=9915
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 1f1df15e by Quanah Gibson-Mount at 2022-10-03T19:15:34+00:00 ITS#9915 - Clarify quoting should only be used with slapd.conf configurations
RE26:
• 7ade05be by Quanah Gibson-Mount at 2022-10-03T20:25:34+00:00 ITS#9915 - Clarify quoting should only be used with slapd.conf configurations
RE25:
• 6fa3c838 by Quanah Gibson-Mount at 2022-10-03T20:41:53+00:00 ITS#9915 - Clarify quoting should only be used with slapd.conf configurations
https://bugs.openldap.org/show_bug.cgi?id=9915
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED