https://bugs.openldap.org/show_bug.cgi?id=10413
Issue ID: 10413 Summary: Consumer prepares cookie too early Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
A consumer prepares its cookie at the moment its task is started (in do_syncrep1), then calls ldap_sync_search, but this is where we can figure out if there's another refresh running already and suspend the task. When that other refresh finishes and tells another one to resume, we just call ldap_sync_search so keep the old cookie rather than update it to match what we now know.
This doesn't affect correctness but forces the other provider(s) to reiterate something the consumer already knows, this can be very expensive for both.
https://bugs.openldap.org/show_bug.cgi?id=10413
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|bugs@openldap.org |ondra@mistotebe.net Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/812
https://bugs.openldap.org/show_bug.cgi?id=10413
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.6.12 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10413
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • b7d3e353 by Ondřej Kuzník at 2025-12-10T19:48:51+00:00 ITS#10413 Prepare cookie just before we actually send it
https://bugs.openldap.org/show_bug.cgi?id=10413
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.6.12 |2.6.13
https://bugs.openldap.org/show_bug.cgi?id=10413
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• d5f1b940 by Ondřej Kuzník at 2026-02-13T01:11:33+00:00 ITS#10413 Prepare cookie just before we actually send it
https://bugs.openldap.org/show_bug.cgi?id=10413
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED