https://bugs.openldap.org/show_bug.cgi?id=9337
Issue ID: 9337 Summary: Slapd crash with lastbind overlay Product: OpenLDAP Version: 2.4.50 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: overlays Assignee: bugs@openldap.org Reporter: frederic.poisson@admin.gmessaging.net Target Milestone: ---
Hello,
I have an issue with a 2.4.50 OpenLDAP instance configured with replication (1 master and 1 replica), and when i activate the lastbind overlay. The replica server crash like this : slapd[8433]: segfault at 1d0 ip 000000000049f70b sp 00007f189f7fd1a0 error 4 in slapd[400000+1d8000]
The database is this one with overlay loaded : dn: cn=module{0},cn=config olcModuleLoad: {0}sssvlv.la olcModuleLoad: {1}ppolicy.la olcModuleLoad: {2}syncprov.la olcModuleLoad: {3}lastbind.la olcModuleLoad: {4}pw-sha2.la
dn: olcDatabase={3}mdb,cn=config objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcUpdateRef: ldap://master.server:389/
If i add this configuration it crash : dn: olcOverlay={2}lastbind objectClass: olcOverlayConfig objectClass: olcLastBindConfig olcOverlay: {2}lastbind olcLastBindPrecision: 60 olcLastBindForwardUpdates: TRUE
Does the release 2.5.51 or 2.5.52 could solve this issue ?
Regards,
https://bugs.openldap.org/show_bug.cgi?id=9337
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to Frédéric Poisson from comment #0)
Does the release 2.5.51 or 2.5.52 could solve this issue ?
The change log for every release is published on the website:
https://www.openldap.org/software/release/changes.html
Neither 2.4.51 or 2.4.52 had changes related to lastbind.
I would suggest obtaining a full gdb backtrace (thr apply all bt full) from the slapd process when the crash occurs and adding it as an attachment or a comment to the bug.
https://bugs.openldap.org/show_bug.cgi?id=9337
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|overlays |contrib
https://bugs.openldap.org/show_bug.cgi?id=9337
--- Comment #2 from Frédéric Poisson frederic.poisson@admin.gmessaging.net --- Created attachment 759 --> https://bugs.openldap.org/attachment.cgi?id=759&action=edit Here is some comments and debug trace from slapd
Here is some comments and debug trace from slapd, i will try to run it with gdb
https://bugs.openldap.org/show_bug.cgi?id=9337
Frédéric Poisson frederic.poisson@admin.gmessaging.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.poisson@admin.gmes | |saging.net
--- Comment #3 from Frédéric Poisson frederic.poisson@admin.gmessaging.net --- Created attachment 760 --> https://bugs.openldap.org/attachment.cgi?id=760&action=edit The same issue with gdb backtrace
Hello, I have added the segmentation fault with a gdb backtrace, hoping it will serve. Regards
https://bugs.openldap.org/show_bug.cgi?id=9337
--- Comment #4 from Frédéric Poisson frederic.poisson@admin.gmessaging.net --- I found why the process crash, i didn't configure chain overlay as mentioned inside slapo-lastbind manual:
" lastbind_forward_updates Specify that updates of the authTimestamp attribute on a consumer should be forwarded to a master instead of being written directly into the consumer's local database. This setting is only useful on a replication consumer, and also requires the updateref setting and chain overlay to be appropriately configured."
Once this is configured all is working as desired.
You can close this ITS
https://bugs.openldap.org/show_bug.cgi?id=9337
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to Frédéric Poisson from comment #4)
Once this is configured all is working as desired.
It still shouldn't cause a crash, that's a valid bug. I will leave this open.
https://bugs.openldap.org/show_bug.cgi?id=9337
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs_review
https://bugs.openldap.org/show_bug.cgi?id=9337
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.5.4
https://bugs.openldap.org/show_bug.cgi?id=9337
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=9337
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 12a81e78 by Ondřej Kuzník at 2021-04-06T14:12:28+01:00 ITS#9337 Actually use the local Operation
https://bugs.openldap.org/show_bug.cgi?id=9337
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED