[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4833) Back-config chokes when adding database



Full_Name: Ralf Haferkamp
Version: HEAD
OS: -
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (89.166.144.248)


When adding a database without an explicit index set olcDatabase-Attribute slapd
crashes (find stack backtrace below).

This is the LDIF I tried to add:

dn: olcDatabase=ldap,cn=config
objectclass: olcDatabaseConfig
objectclass: olcldapconfig
olcDatabase: ldap
olcsuffix: cn=test
olcrootdn: cn=admin,cn=test
olcrootpw: secret
olcdburi: ldap://my.ldap.server

When using the correct index, '{1}' in my case it works as expected. I suspect
something's wrong the special handling of the {-1} index of frontendDB, but
wasn't able to track it down completely.

Here's the backtrace:
#0  0x0000000000415083 in config_add_internal (cfb=0x7f11c0, e=0x88af68,
    ca=0x40fff6c0, rs=0x41000cb0, renum=0x41000884, op=0x8ad530)
    at bconfig.c:4385
#1  0x00000000004156a7 in config_back_add (op=0x8ad530, rs=0x41000cb0)
    at bconfig.c:4523
#2  0x000000000043057b in fe_op_add (op=0x8ad530, rs=0x41000cb0) at add.c:330
#3  0x000000000042feaf in do_add (op=0x8ad530, rs=0x41000cb0) at add.c:182
#4  0x00000000004276db in connection_operation (ctx=0x41000de0, arg_v=0x8ad530)
    at connection.c:1129
#5  0x0000000000427bb9 in connection_read_thread (ctx=0x41000de0, argv=0xc)
    at connection.c:1257
#6  0x000000000053d552 in ldap_int_thread_pool_wrapper (xpool=0x85e630)
    at tpool.c:704
#7  0x00002b374570309e in start_thread () from /lib64/libpthread.so.0
#8  0x00002b37459d94cd in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()