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

Re: Slapadd and multiple backends



On Wed, Sep 01, 1999 at 03:17:05PM +0200, Anders Mattsson wrote:
> Hi,
> 
> Slapadd doesn't appear to accept multiple backends... It gives a reply:
> 
> slapadd: database not configured to hold dn="ou=b" (line=10)

It doesn't appear that you have a db which handles "ou=b".

> >From my slapd.conf:
> --------------------------------------
> ...
> ....
> database        ldbm
> suffix          "ou=a"
> directory       "/usr/local/test/a"
> rootdn          "cn=admin"
> rootpw          secret
> 
> database        ldbm
> suffix          "tnPf=b"
> directory       "/usr/local/test/b"
> rootdn          "cn=admin"
> rootpw          secret
> ----------------------------------------
> 
> I try to import a simple file:
> 
> dn: ou=a
> objectClass: organizationalUnit
> objectClass: top
> ou: a
>  
> dn: ou=b
> objectClass: organizationalUnit
> objectClass: top
> ou: b
> 
> This example works with ldif2ldbm. I'm running OpenLDAP2.0alpha2 under BSDI
> 3.1

ldif2ldbm did no real checking, and basically was not aware of multiple databases
on a single run.

You either need to remove the ou=entry, or place it under one of the toplevel
dn's defined in your slapd.conf (tnPf=b or ou=a)

Ben