On Wed, 15 Feb 2012, stefano wrote:
[...an hdb configured with...]
directory "/var/lib/ldap" [...] if i run
slapadd -l init.ldif -b "dc=pippo","dc=it"
i get the following result:
=> hdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30995) => hdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30995) slapadd: could not add entry dn="dc=pippo,dc=it" (line=1): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30995) _### 16.07% eta none elapsed none spd 11.8 k/s
why do i have the first error?
The entry "dc=pippo,dc=it" is already in the database ... slapadd is really designed for initial loads, to an otherwise empty directory.
Perhaps you forgot to "rm /var/lib/ldap/*" first (you're only in testing, I hope...or have a recent slapcat for a restore?)
why there are not the others informations about the tree?
Once it reaches that error, slapadd aborts. So the rest of the entries in your file aren't being read / created.
If you try the rm first, and do the slapadd again, it'll probably run through.