Issue 4358 - problems with back-perl
Summary: problems with back-perl
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: contrib (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 16:54 UTC by kze@oleane.net
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kze@oleane.net 2006-01-20 16:54:48 UTC
Full_Name: Kevine Zerbib
Version: 2.3.18
OS: Debian Sarge
URL: ftp://ftp.openldap.org/incoming/Kevine-Zerbib-060120.patch
Submission from: (NULL) (213.56.0.222)


Hi, 
using back-perl, we find two issues in openldap last release (2.3.18) concerning
this backend.

The first issue concern the process of perl interpretor initialisation within
this backend. The interpreter was not initialized at all, and that leads us to a
core dump. 

This probleme occurs because during the backend initialisation, the function
perl_back_db_config is called via be_config BEFORE perl_back_open.

This problem has been solved modifying
<openldap-src>/servers/slapd/back-perl/init.c and
<openldap-src>/servers/slapd/back-perl/proto-perl.h.
We changed the bi_open's reference to perl_back_open by replacing it with a
'NULL' value, and integrate the function into perl_back_initialize.

A diff file has been produce and is join to this message.

The second issue concern the process of finding the appropriate interpreter
while executing perl code within a thread. This issue leads the programm to
a core dump because, within a thread, it is unable to find a proper perl
interpreter to execute.

We just add a define condition to the statement  "PERL_SET_CONTEXT(
PERL_INTERPRETER );" so it can be considered while using ITHREAD in
<openldap-src>/servers/slapd/back-perl/bind.c.

A diff file has been produce and is join to this message.

We hope that will help.

Comment 1 ando@openldap.org 2006-01-21 09:00:55 UTC
changed notes
Comment 2 ando@openldap.org 2006-01-24 21:36:32 UTC
moved from Incoming to Contrib
Comment 3 ando@openldap.org 2006-08-26 13:13:32 UTC
changed notes
changed state Open to Feedback
Comment 4 Howard Chu 2006-10-07 19:56:12 UTC
changed notes
changed state Feedback to Release
Comment 5 Kurt Zeilenga 2006-10-20 19:11:11 UTC
changed notes
changed state Release to Closed
Comment 6 Howard Chu 2009-02-17 07:00:14 UTC
moved from Contrib to Archive.Contrib
Comment 7 OpenLDAP project 2014-08-01 21:05:16 UTC
back-perl; volunteers?
seems to fix ITS#4646
applied to RE23