Hi,
I'm unable to set up a back-perl backend directly in cn=config mode. However, if I set it up in slapd.conf mode, and then convert it to cn=config mode, it works fine. It's not convenient, because I have to set all my perl backends up before converting to cn=config.
Here's the ldif file I'm using to set up a back-perl backend in cn=config mode (it's inspired from the files I get by converting slapd.conf into cn=config with slaptest)
# Load dynamic backend modules dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulepath: /usr/local/libexec/openldap olcModuleload: back_perl.la
# Database settings dn: olcDatabase=perl,cn=config objectClass: olcDatabaseConfig objectClass: olcDbPerlConfig olcDatabase: perl olcSuffix: dc=mydomain,dc=org olcAddContentAcl: FALSE olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcRootDN: cn=Manager,dc=mydomain,dc=org olcRootPW:: c2VjcmV0 olcSyncUseSubentry: FALSE olcMonitoring: FALSE olcPerlModulePath: /usr/local/etc/openldap/perl olcPerlModule: SampleLDAP olcPerlFilterSearchResults: FALSE
And here's what I get when I try to load the file: ldapadd -Y EXTERNAL -H ldapi:/// -f perl-backend.ldif SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "cn=module,cn=config" adding new entry "olcDatabase=perl,cn=config" ldap_result: Can't contact LDAP server (-1)
After that, if I start OpenLDAP I get a segmentation fault: root@ldap:/tmp# /usr/local/libexec/slapd -u openldap -g openldap -h "ldap:/// ldapi:///" -d 16383 .... 51585496 perl backend db init Segmentation fault
Like I said, if I set back-perl up in slapd.conf mode and then convert it to cn=config, everything works fine.
Something must be wrong with my LDIF file, but what ??? It seems to be the same as the one generated by slaptest when converting from slapd.conf mode.
Ben
--On Saturday, April 06, 2013 2:38 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
Hi,
I'm unable to set up a back-perl backend directly in cn=config mode. However, if I set it up in slapd.conf mode, and then convert it to cn=config mode, it works fine. It's not convenient, because I have to set all my perl backends up before converting to cn=config.
Openldap version?
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
sorry, 2.4.34 on Debian 6.0.4
Le 06/04/2013 18:45, Quanah Gibson-Mount a écrit :
--On Saturday, April 06, 2013 2:38 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
Hi,
I'm unable to set up a back-perl backend directly in cn=config mode. However, if I set it up in slapd.conf mode, and then convert it to cn=config mode, it works fine. It's not convenient, because I have to set all my perl backends up before converting to cn=config.
Openldap version?
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
should I file an ITS ? do you think it's a bug ?
a few months ago I found something similar with back-sql, it didn't work in cn=config style, it was a bug (ITS#7499)
-------- Message original -------- Sujet: Re: back-perl not working with cn=config Date : Sun, 07 Apr 2013 16:33:52 +0100 De : Benin Technologies benintechnologies@yahoo.fr Pour : Quanah Gibson-Mount quanah@zimbra.com Copie à : openldap-technical@openldap.org
sorry, 2.4.34 on Debian 6.0.4
Le 06/04/2013 18:45, Quanah Gibson-Mount a écrit :
--On Saturday, April 06, 2013 2:38 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
Hi,
I'm unable to set up a back-perl backend directly in cn=config mode. However, if I set it up in slapd.conf mode, and then convert it to cn=config mode, it works fine. It's not convenient, because I have to set all my perl backends up before converting to cn=config.
Openldap version?
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
--On Thursday, April 11, 2013 6:15 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
should I file an ITS ? do you think it's a bug ?
a few months ago I found something similar with back-sql, it didn't work in cn=config style, it was a bug (ITS#7499)
If it works with slapd.conf, but not cn=config, then yes, please file an ITS.
Thanks!
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
done, ITS#7573
Le 11/04/2013 18:53, Quanah Gibson-Mount a écrit :
--On Thursday, April 11, 2013 6:15 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
should I file an ITS ? do you think it's a bug ?
a few months ago I found something similar with back-sql, it didn't work in cn=config style, it was a bug (ITS#7499)
If it works with slapd.conf, but not cn=config, then yes, please file an ITS.
Thanks!
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org