I am trying to create a minimal LDAP installation to test using LDAP for netgroups.
My slapd.conf contains
include /usr/local/openldap/etc/openldap/schema/core.schema include /usr/local/openldap/etc/openldap/schema/cosine.schema include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema include /usr/local/openldap/etc/openldap/schema/nis.schema include /usr/local/openldap/etc/openldap/schema/misc.schema pidfile /usr/local/openldap/var/run/slapd.pid argsfile /usr/local/openldap/var/run/slapd.args database bdb suffix "dc=nortel,dc=com" rootdn "cn=Manager,dc=nortel,dc=com" rootpw {SSHA}VszWHdlMt+txouAiBDwn0uKRII8OKzKc directory /usr/local/openldap/var/openldap-data index cn,sn pres,eq,approx,sub index objectClass eq
I can add the following data without trouble
dn: dc=nortel,dc=com objectClass: dcObject objectClass: organization dc: nortel o: Nortel description: Nortel Inc.
dn: cn=Manager,dc=nortel,dc=com objectClass: organizationalRole cn: Manager description: Directory Manager
dn: ou=Netgroup,dc=nortel,dc=com ou: Netgroup objectClass: top objectClass: organizationalUnit
dn: nisMapName=netgroup.byuser,dc=nortel,dc=com nismapname: netgroup.byuser objectClass: top objectClass: nisMap
dn: nisMapName=netgroup.byhost,dc=nortel,dc=com nismapname: netgroup.byhost objectClass: top objectClass: nisMap
However, when I try to add
dn: cn=sample,ou=netgroup,dc=nortel,dc=com objectclass: nisNetGroup objectclass: top cn: sample nisNetgroupTriple: (zrtps0q8,,) nisNetgroupTriple: (zrtps0q8.us.nortel.com,,)
slapd dies and leaves a core dump
I built slapd with debugging and when I bring it up in the debugger. It tells me
t@5 (l@1) terminated by signal BUS (invalid address alignment) 0xffffffff7efd2f3c: __lock_get_internal+0x08ac: ldx [%l1 + 0x18], %l0 Current function is bdb_id2entry
The source code line is 125 in id2entry.c
rc = cursor->c_get( cursor, &key, &data, DB_SET );
I can't figure out what I am doing wrong. I tried to strip things down to the bare essentials.
I suspect I haven't created the LDAP database properly but I am unable to determine what step or data I am missing.
There is no point in debuging 2.3.38, since 2.3 is now at 2.3.43 and probably there will no more releases of 2.3. You should at least check if the issue still exists in 2.3.43; what really matters is if the issue exists in 2.4.12. In case it does, then it might be worth addressing the issue. If it is fixed, then you may consider upgrading or backporting the fix yourself in case no more 2.3 releases occur.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
On Thu, Oct 16, 2008 at 10:54:54PM +0200, Pierangelo Masarati wrote:
"p" == Pierangelo Masarati ando@sys-net.it writes:
p> There is no point in debuging 2.3.38, since 2.3 is now p> at 2.3.43 and probably there will no more releases of p> 2.3. You should at least check if the issue still p> exists in 2.3.43; what really matters is if the issue p> exists in 2.4.12. In case it does, then it might be p> worth addressing the issue. If it is fixed, then you p> may consider upgrading or backporting the fix yourself p> in case no more 2.3 releases occur.
I built 2.4.12 and I was able to successfully add the nisNetgroupTriple.
openldap-software@openldap.org