[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapadd: could not add entry
Hello everybody,
I'm trying to migrate from a flat files nameservice (group, passwd, etc.) to
an OpenLDAP database on my Debian unstable system. I use scripts from
http://www.padl.com/tools.html to create an ldif file, however, when using
slapadd with this ldif file, such error occurs:
sonaras:/var/lib/ldap# slapadd -d1 -l ldif
slapadd init: initiated tool.
==>backsql_initialize()
<==backsql_initialize()
slapadd startup: initiated.
backend_startup: starting database
=> ldbm_cache_open( "id2entry.dbb", 73, 600 )
<= ldbm_cache_open (opened 0)
=> str2entry
<= str2entry(dc=ktu,dc=lt) -> -1 (0x80c0e78)
slapadd: database (dc=sc-uni,dc=ktu,dc=lt) not configured to hold
dn="dc=ktu,dc=lt" (line=5)
slapadd shutdown: initiated
ldbm backend syncing
ldbm flushing db (id2entry.dbb)
ldbm closing db (id2entry.dbb)
ldbm backend done syncing
====> cache_release_all
slapadd shutdown: freeing system resources.
Here is the start of the ldif file:
dn: dc=ktu,dc=lt
dc: ktu
objectClass: top
objectClass: domain
dn: dc=sc-uni,dc=ktu,dc=lt
dc: sc-uni
objectClass: top
objectClass: domain
dn: ou=People,dc=sc-uni,dc=ktu,dc=lt
ou: People
objectClass: top
objectClass: organizationalUnit
And this is relevant part of /etc/ldap/slapd.conf:
database ldbm
suffix "dc=sc-uni,dc=ktu,dc=lt"
rootdn "cn=admin,dc=sc-uni,dc=ktu,dc=lt"
rootpw mypass
directory "/var/lib/ldap/mano-dn/"
Thanks in advance for any kind of assistance.
--
Tadas Miniotas
tadas@ipv6.lt