--On Wednesday, June 3, 2020 4:26 PM +0000 Jean-Luc Chandezon
<jlch(a)lan-explore.fr> wrote:
I followed your advice by removing wrong lines, but I can not import
with
simple line : slapadd -n 0 -l /tmp/config.ldif
Result: slapadd: could not add entry dn="cn=config" (line=1)
Did you remove your existing configuration database files from /etc/ldap or
wherever it is they exist prior to running the slapadd? slapadd will not
overwrite existing files.
Generally you may want to do something like:
cd /etc/ldap
mv slapd.d slapd.d.orig
mkdir slapd.d
chown ldap:ldap slapd.d
Note that the above is making guesses about (a) the location of your
cn=config database and (b) the user/group used by slapd. Adjust
accordingly.
Regards,
Quanah
--
Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<
http://www.symas.com>