[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Converting from slapd.d back to slapd.conf



Hi,

On Thu, 27 Mar 2014, Sven Jourgensen wrote:

Thanks Dan,
	I did not realise slapcat could be used in this way, that looks
ideal.

I like to add -o ldif-wrap=no when comparing cn=config slapcats.

Greetings
Christian

s.

On Thu, 27 Mar 2014, Dan White wrote:

Sounds like a job for diff:

slapcap -n0 -F <path_to_existing_slapd.d> > $TMP/slapd-portable.ldif

mkdir $TMP/slapd.d.generic
slaptest -f <path_to>/slapd.conf.generic -F $TMP/slapd.d.generic
slapcat -n0 -F $TMP/slapd.conf.generic > $TMP/generic-portable.ldif

diff -ruN $TMP/slapd-portable.ldif $TMP/generic-portable.ldif

Compare the output, and adjust your generic slapd.conf, then rinse, lather,
and repeat until you get the same output.

--
Dan White




--
Christian Kratzer                   CK Software GmbH
Email:   ck@cksoft.de               Wildberger Weg 24/2
Phone:   +49 7032 893 997 - 0       D-71126 Gaeufelden
Fax:     +49 7032 893 997 - 9       HRB 245288, Amtsgericht Stuttgart
Mobile:  +49 171 1947 843           Geschaeftsfuehrer: Christian Kratzer
Web:     http://www.cksoft.de/