slapcat -n 0 and slapadd

2011-10-26 Thread Craig White
Having migrated to dynamic config, I'm looking for a reasonable way to restore in the event of a disaster. The discussion last week got me curious and though I can slapcat -n 0 -l $SOME_FILE I can't slapadd this same file because it complains that I don't have a slapd.conf file, which of

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Craig White
On Oct 26, 2011, at 12:00 PM, Howard Chu wrote: Craig White wrote: Having migrated to dynamic config, I'm looking for a reasonable way to restore in the event of a disaster. The discussion last week got me curious and though I can slapcat -n 0 -l $SOME_FILE I can't slapadd this same file

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Howard Chu
Craig White wrote: On Oct 26, 2011, at 12:00 PM, Howard Chu wrote: Craig White wrote: Having migrated to dynamic config, I'm looking for a reasonable way to restore in the event of a disaster. The discussion last week got me curious and though I can slapcat -n 0 -l $SOME_FILE I can't

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Craig White
On Oct 26, 2011, at 1:13 PM, Howard Chu wrote: Craig White wrote: On Oct 26, 2011, at 12:00 PM, Howard Chu wrote: Craig White wrote: Having migrated to dynamic config, I'm looking for a reasonable way to restore in the event of a disaster. The discussion last week got me curious and

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Quanah Gibson-Mount
--On October 26, 2011 2:00:07 PM -0700 Craig White craig.wh...@ttiltd.com wrote: root@ubuntu:/etc/ldap# rm -fr slapd.d/* root@ubuntu:/etc/ldap# rm -fr /var/lib/ldap/* root@ubuntu:/etc/ldap# slapadd -F /etc/ldap/slapd.d -n 0 -l slapcat_config.ldif olcDbDirectory: value #0: invalid path: No

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Craig White
On Oct 26, 2011, at 2:18 PM, Quanah Gibson-Mount wrote: --On October 26, 2011 2:00:07 PM -0700 Craig White craig.wh...@ttiltd.com wrote: root@ubuntu:/etc/ldap# rm -fr slapd.d/* root@ubuntu:/etc/ldap# rm -fr /var/lib/ldap/* root@ubuntu:/etc/ldap# slapadd -F /etc/ldap/slapd.d -n 0 -l

Re: slapcat -n 0 and slapadd [SOLVED]

2011-10-26 Thread Craig White
On Oct 26, 2011, at 2:18 PM, Quanah Gibson-Mount wrote: --On October 26, 2011 2:00:07 PM -0700 Craig White craig.wh...@ttiltd.com wrote: root@ubuntu:/etc/ldap# rm -fr slapd.d/* root@ubuntu:/etc/ldap# rm -fr /var/lib/ldap/* root@ubuntu:/etc/ldap# slapadd -F /etc/ldap/slapd.d -n 0 -l

Re: slapcat -n 0 and slapadd

2011-10-26 Thread Howard Chu
Craig White wrote: On Oct 26, 2011, at 1:13 PM, Howard Chu wrote: Pay attention. Even a monkey can copy text without omitting parts. slapadd -F /etc/ldap/slapd.d -n 0 -l slapcat_config.ldif sorry - I'm stupid but and am not a monkey. It seems to me the reason that something like Zytrax