[DBMail 0001081]: DBmail ABEND'ing upon LDAP access error.
Mantis Bug Tracker <[email protected]> Fri, 30 Sep 2016 23:37:20 +0200
| Newsgroups | gmane.mail.imap.dbmail.devel |
|---|---|
| Message-ID | <[email protected]> |
A NOTE has been added to this issue.
======================================================================
http://dbmail.org/mantis/view.php?id=1081
======================================================================
Reported By: PeterS
Assigned To:
======================================================================
Project: DBMail
Issue ID: 1081
Category: Authentication layer
Reproducibility: always
Severity: major
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 10-Aug-16 23:27 CEST
Last Modified: 30-Sep-16 23:37 CEST
======================================================================
Summary: DBmail ABEND'ing upon LDAP access error.
Description:
I've been trying to find a version of DBmail 3.X that does not ABEND while
it is accessing LDAP. I have not been able to determine the sequence of
events that causes the ABEND, however it happens to me many many times a
day. I've written a script around the execution of DBmail to ensure that
it restarts when it ABENDs.
======================================================================
----------------------------------------------------------------------
(0003740) PeterS (reporter) - 11-Aug-16 19:57
http://dbmail.org/mantis/view.php?id=1081#c3740
----------------------------------------------------------------------
Persuant to the "Bug posting etiquette", yesterday I pulled a clean,
newest, version of DBmail from GIT, compiled it, installed it, cleared the
dbmail.err log, and started it. Since then I have received 14 ABENDs.
[compiler@swlx143 dbmail-git]$ date ; git status -u no
Thu Aug 11 13:02:11 CDT 2016
# On branch master
nothing to commit (working directory clean)
[compiler@swlx143 dbmail-git]$
----------------------------------------------------------------------
(0003745) PeterS (reporter) - 07-Sep-16 23:37
http://dbmail.org/mantis/view.php?id=1081#c3745
----------------------------------------------------------------------
Today I migrated my database over to new hardware and am receiving the same
error.
dbmail-imapd: sasl.c:75: ldap_sasl_bind: Assertion `(
(ld)->ldc->ldc_options.ldo_valid == 0x2 )' failed.
Red Hat RHEL7
dbmail-auth-ldap-3.2.3-1.el7.x86_64
dbmail-3.2.3-1.el7.x86_64
postgresql-9.2.15-1.el7_2.x86_64
postgresql-server-9.2.15-1.el7_2.x86_64
----------------------------------------------------------------------
(0003746) alan (reporter) - 08-Sep-16 19:01
http://dbmail.org/mantis/view.php?id=1081#c3746
----------------------------------------------------------------------
This error appears to be ldap connection related. Error reports elsewhere
suggest either something in /etc/openldap/ldap.conf or library
compatibility following updates to openssl. Are there any certificates
missing?
Are you able to compile dbmail locally, this may address library issues.
----------------------------------------------------------------------
(0003749) PeterS (reporter) - 15-Sep-16 17:31
http://dbmail.org/mantis/view.php?id=1081#c3749
----------------------------------------------------------------------
Alan, I have already tried the latest build(s) of DBmail to no avail. I've
disabled all certificate handling in OPENLDAP using both:
TLS_REQCERT never
and also:
TLS_REQCERT allow
with no change in results. We have multiple Microsoft AD LDAP servers
here, with varying certificates that aren't really verifiable, so I have
always disabled tracking or requiring valid certificates. We have other
Linux systems using LDAP/OPENLDAP without any issues using this same
config.
----------------------------------------------------------------------
(0003751) alan (reporter) - 28-Sep-16 20:24
http://dbmail.org/mantis/view.php?id=1081#c3751
----------------------------------------------------------------------
Confirm I'm able to reproduce the issue, think I've tracked down the parts
of the code causing it. Will test asap.
----------------------------------------------------------------------
(0003752) alan (reporter) - 30-Sep-16 16:58
http://dbmail.org/mantis/view.php?id=1081#c3752
----------------------------------------------------------------------
This issues appears to be fixed using the attached patch, please test.
----------------------------------------------------------------------
(0003753) PeterS (reporter) - 30-Sep-16 23:37
http://dbmail.org/mantis/view.php?id=1081#c3753
----------------------------------------------------------------------
I've patched the Red Hat RHEL 7 (EPEL 7) version of DBmail
(dbmail-3.2.3-1.el7.x86_64, dbmail-auth-ldap-3.2.3-1.el7.x86_64, and
dbmail-debuginfo-3.2.3-1.el7.x86_64) with
dbmail_src_modules_authldap.c-20160930.diff and receive the attached error,
dbmail.20160930-1642.err . The service still ABEND's.
Issue History
Date Modified Username Field Change
======================================================================
10-Aug-16 23:27 PeterS New Issue
10-Aug-16 23:27 PeterS File Added: dbmail.err
11-Aug-16 19:57 PeterS Note Added: 0003740
07-Sep-16 23:37 PeterS Note Added: 0003745
08-Sep-16 19:01 alan Note Added: 0003746
15-Sep-16 17:31 PeterS Note Added: 0003749
28-Sep-16 20:24 alan Note Added: 0003751
30-Sep-16 16:58 alan Note Added: 0003752
30-Sep-16 17:01 alan File Added: dbmail_src_modules_authldap.c.diff
30-Sep-16 18:15 alan Issue Monitored: alan
30-Sep-16 18:17 alan File Added:
dbmail_src_modules_authldap.c-20160930.diff
30-Sep-16 23:37 PeterS Note Added: 0003753
======================================================================