> --On Wednesday, June 3, 2020 4:26 PM +0000 Jean-Luc Chandezon 
> <[email protected]> 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.

Yes I did. /etc/ldap/slapd.d is empty

> 
> 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

I did believe that chown should be played after slapadd. 

> 
> 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.

Sure. For me it's the same location. I just need to replace ldap by openldap 
for chown.

Can I find/enable logging with error details?

Thank you,
Jean-Luc

> 
> Regards,
> Quanah
> 
> 
> --
> 
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>

Reply via email to