[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8150) slapcat cn=config produces LDIF that will not re-load
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8150) slapcat cn=config produces LDIF that will not re-load
- From: hyc@symas.com
- Date: Wed, 20 May 2015 18:40:36 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
andrew.findlay@skills-1st.co.uk wrote:
> Full_Name: Andrew Findlay
> Version: 2.4.40
> OS: CentOS 7
> URL:
> Submission from: (NULL) (2001:8b0:8d0:f7e1:a136:6cef:11df:9726)
>
>
> When using cn=config it is sometimes necessary to extract the whole config to an
> LDIF file, edit it and re-load into an empty directory. Therefore I would expect
> the null-edit case to work for any system:
>
> slapcat -F .../config -n 0 -o ldif-wrap=no % e extracted.ldif
> rm -rf .../config
> mkdir .../config
> slapadd -F .../config -n 0 -l extracted.ldif
>
> What I actually get is an error message:
> slapadd: dn="olcDatabase={-1}frontend,cn=config" (line=250): (64) value of
> single-valued naming attribute 'olcDatabase' conflicts with value present in
> entry
Unable to reproduce.
violino:~/OD/o24/tests> mkdir testrun/slapd.d
violino:~/OD/o24/tests> ../servers/slapd/slapd -Tc -f testrun/slapd.1.conf -F
testrun/slapd.d -n0 > cf1.ldif
violino:~/OD/o24/tests> ls testrun/slapd.d
cn=config cn=config.ldif
violino:~/OD/o24/tests> rm -rf testrun/slapd.d/*
violino:~/OD/o24/tests> ../servers/slapd/slapd -Ta -F testrun/slapd.d -n0 -l
cf1.ldif
_#################### 100.00% eta none elapsed none fast!
Closing DB...
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/