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

Re: Dynamic schema update



Thanks Dieter and Chu for the reply.

> The cn=config tree always exists. Changes take effect immediately. But 
> if you're using slapd.conf instead of slapd.d, the changes are not saved 
> to any config file.
> >

I tried updating the schema dynamically (the main database is bdb) when
I'm using the -F option, and it seems to be working fine. Yet, when I
use the -f option (I don't care if the changes are not saved), slapd
gets a seg-fault. In the slapd.conf, I have the following relevant
lines:

database    config
rootpw      {SSHA}3IWksAwIfw+tP/CjZi1us8bKnMPKiyZm

I try to add the following schema object:

dn: cn=core,cn=schema,cn=config
cn: core
objectClass: olcSchemaConfig
olcObjectClasses: ( 1.1.6.10 NAME 'testObjClass2' DESC 'testObjClass'
SUP top STRUCTURAL MUST cn MAY ( x121Address) )

ldapadd returns the following response:
adding new entry "cn=core,cn=schema,cn=config"

But the slapd get seg-fault. Btw, although the configure states that
'enabled debug' is on by default, the core has no debug symbols.
As I said, when I run the same ldapadd with -F everything is OK.
I'm using openldap-2.3.24, compiled from source, on Fedora Core 4, with
the following machine:

Linux eranl 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:16:33 EDT 2005
x86_64 x86_64 x86_64 GNU/Linux

Best regards,
  Eran