https://bugs.openldap.org/show_bug.cgi?id=10286
Issue ID: 10286 Summary: ldap_pvt_gettime may result in "not new enough csn" problems in multi-thread case. Product: OpenLDAP Version: 2.6.6 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: 971748261@qq.com Target Milestone: ---
Created attachment 1041 --> https://bugs.openldap.org/attachment.cgi?id=1041&action=edit the log of adding two entry which shows the time sequence.
I used openldap as krb5's database, and openldap was deploymented in mirrormode.
I tried to add kerberos principals via kadmin.local -q "addprinc -randkey principal.
slapd log showed that the entry of kadmin/admin was added earlier than the entry of ossuser. But the csn of kadmin/admin was greater than ossuser.
In this case, when the two entry began to sync to the other slapd server, ossuser was ignored because of "csn not new enough"
https://bugs.openldap.org/show_bug.cgi?id=10286
--- Comment #1 from 郭峰 971748261@qq.com --- slapd runs on linux OS.
https://bugs.openldap.org/show_bug.cgi?id=10286
gardonkoo 971748261@qq.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|ldap_pvt_gettime may result |ldap_pvt_gettime may result |in "not new enough csn" |in "csn not new enough" |problems in multi-thread |problems in multi-thread |case. |case.
https://bugs.openldap.org/show_bug.cgi?id=10286
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.7.0 Assignee|bugs@openldap.org |hyc@openldap.org Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10286
gardonkoo 971748261@qq.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|All |Linux
https://bugs.openldap.org/show_bug.cgi?id=10286
--- Comment #2 from angela_adelmann angela.adelmann-kropp@kfw.de --- Are there any kind of solution? I have the same problem SLES15SP5/OpenLdap 2.5.18.
https://bugs.openldap.org/show_bug.cgi?id=10286
--- Comment #3 from Ondřej Kuzník ondra@mistotebe.net --- On Tue, Nov 25, 2025 at 01:04:39PM +0000, openldap-its@openldap.org wrote:
Are there any kind of solution? I have the same problem SLES15SP5/OpenLdap 2.5.18.
Hi Angela, if you believe this is due to slap_get_csn (ldap_pvt_gettime), can you provide 'loglevel sync' logs where new csns are generated out of order?
As 2.5 is in the end of life stage, can you reproduce this on 2.6?
Thanks,
https://bugs.openldap.org/show_bug.cgi?id=10286
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #4 from Howard Chu hyc@openldap.org ---
*** This issue has been marked as a duplicate of issue 10100 ***