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

Re: (ITS#3748) back-config: creating a new database requires restarting slapd

On Wednesday 25 May 2005 10:12, rhafer@suse.de wrote:
> Currently it doesn't seem to be possible to create and use a new
> database (bdb or whatever) without restarting the server. Is that
> correct? If I understand things correctly backend_startup_one()
> should to be called after an "olcDatabase"-entry was added. But
> currently bconfig doesn't seem to provide hooks for that. Am I
> correct with that or did I miss something?

I just saw that there were changes in bconfig.c from HEAD to address 
this issue. Unfortunately that still doesn't work correctly for 
back-dbd. I assume that this is because backend_startup_one() and 
bdb_db_open() gets called before the suffix and the directory 
attributes are known.

The following entry causes slapd to crash in bdb_db_open() now:

dn: olcDatabase=bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcSuffix: dc=example,dc=com
olcRootDN: cn=admin,dc=example,dc=com
olcRootPW: secret
olcDbDirectory: /var/lib/ldap
olcDatabase: bdb