openldap database backend back_perl has undefined symbols (aka slapd-perl back-perl)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Error when starting slapd when configured to use the perl backend (/etc/init.d/slapd start):
Starting OpenLDAP: slapd - failed:
/usr/sbin/slapd: symbol lookup error: /usr/lib/
This may be related to bug #90812
When start fails, also verified it was not running with ps.
Removing the "database perl" section allows it to start.
lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
slapd -V
@(#) $OpenLDAP: slapd 2.4.18 (Sep 8 2009 17:47:22) $
To reproduce:
Changed to use slapd.conf rather than ldif configs.
/etc/defaults/slapd :
SLAPD_CONF=
SLAPD_USER=
SLAPD_GROUP=
SLAPD_PIDFILE=
SLAPD_SERVICES=
SLAPD_SENTINEL_
SLAPD_OPTIONS=""
My /etc/ldap/
moduleload back_perl
include /etc/ldap/
include /etc/ldap/
include /etc/ldap/
loglevel 1320
pidfile /var/run/
argsfile /var/run/
password-hash {SSHA}
database perl
suffix "dc=company,dc=com"
perlModulePath /etc/ldap/perl
perlModule SampleLDAP
Copied SampleLDAP.pm from source distribution to /etc/ldap/
chown'd it to openldap:
chmod'd it to 750
opendlap source location:
openldap-
Fixed bug in SampleLDAP.pm on line 52:
< print {*STDERR}, "====$filterStr
> print {*STDERR} "====$filterStr
[note: attached the SampleLDAP.pm]
Attempt to start service, and receive the error.
/etc/init.d/slapd start
Starting OpenLDAP: slapd - failed:
/usr/sbin/slapd: symbol lookup error: /usr/lib/
ProblemType: Bug
Architecture: amd64
Date: Sun Nov 8 15:16:42 2009
DistroRelease: Ubuntu 9.10
Package: slapd 2.4.18-0ubuntu1
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
ProcVersionSign
SourcePackage: openldap
Uname: Linux 2.6.31-14-server x86_64
Thanks for the bug report.
Regards
chuck