https://bugs.openldap.org/show_bug.cgi?id=9713
Issue ID: 9713 Summary: slaptest fails to log failure reason when logfile is not writeable Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: quanah@openldap.org Target Milestone: ---
When using the logfile directive in slapd config. If the file exists, but is not writable by slaptest. The test fails, but there is no indication why:
/opt/OPENLDAP_REL_ENG_2_6/sbin/slaptest -v -u -f /opt/install/slapd/opt/OPENLDAP_REL_ENG_2_6/etc/openldap/slapd.conf slaptest: bad configuration file!
2.5.4 behaves differently. The test does not fail, regardless of whether the file exists or not, or whether it is writable or not.
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.6.0
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |CONFIRMED Ever confirmed|0 |1
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |IN_PROGRESS
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/419
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |TEST
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head: • 7c20ca92 by Howard Chu at 2021-10-07T17:11:53+01:00 ITS#9713 log fatal config errors at LDAP_DEBUG_ANY
https://bugs.openldap.org/show_bug.cgi?id=9713
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26: Commits: • 635b2c82 by Howard Chu at 2021-10-08T16:50:19+00:00 ITS#9713 log fatal config errors at LDAP_DEBUG_ANY
https://bugs.openldap.org/show_bug.cgi?id=9713
--- Comment #4 from bastian-bugopenldap21@t6l.de --- The latest RC I pulled now writes an error message to the console:
``` $ /opt/OPENLDAP_REL_ENG_2_6/sbin/slaptest -u -v -f /opt/OPENLDAP_REL_ENG_2_6/etc/openldap/slapd.conf /opt/OPENLDAP_REL_ENG_2_6/etc/openldap/slapd.conf: line 19: <logfile> handler exited with 13! slaptest: bad configuration file! ```
This makes it now clear that the logfile directive causes the failure.
Thanks!
https://bugs.openldap.org/show_bug.cgi?id=9713
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED