[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Converting from slapd.d back to slapd.conf
Thanks Dan,
I did not realise slapcat could be used in this way, that looks
ideal.
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
>