How do I delete the entire contents of my LDAP database to then import the edited version via slapadd? If I use slapadd directly, it of course doesn't delete the entries that are in the LDAP but not in the ldif file. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
A bit hamfisted approach is to stop ldap server, delete contents of /var lib/ldap, start server, stop it once again (it will create empty database) and then import. Tosuja Anders Norrbring wrote:
How do I delete the entire contents of my LDAP database to then import the edited version via slapadd?
If I use slapadd directly, it of course doesn't delete the entries that are in the LDAP but not in the ldif file. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Petr Klíma skrev:
A bit hamfisted approach is to stop ldap server, delete contents of /var lib/ldap, start server, stop it once again (it will create empty database) and then import.
Tosuja
Anders Norrbring wrote:
How do I delete the entire contents of my LDAP database to then import the edited version via slapadd?
If I use slapadd directly, it of course doesn't delete the entries that are in the LDAP but not in the ldif file.
I was thinking about it, but wasn't sure it would work correctly to delete all the bdb files... Anders. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Back up the dir and try. If there's *CONFIG* file, don't delete it... I've done that myself several times. Tosuja Anders Norrbring wrote:
Petr Klíma skrev:
A bit hamfisted approach is to stop ldap server, delete contents of /var lib/ldap, start server, stop it once again (it will create empty database) and then import.
Tosuja
Anders Norrbring wrote:
How do I delete the entire contents of my LDAP database to then import the edited version via slapadd?
If I use slapadd directly, it of course doesn't delete the entries that are in the LDAP but not in the ldif file.
I was thinking about it, but wasn't sure it would work correctly to delete all the bdb files...
Anders.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 12 May 2007, Anders Norrbring wrote:
Petr Klíma skrev:
A bit hamfisted approach is to stop ldap server, delete contents of /var lib/ldap, start server, stop it once again (it will create empty database) and then import.
Tosuja
Anders Norrbring wrote:
How do I delete the entire contents of my LDAP database to then import the edited version via slapadd?
If I use slapadd directly, it of course doesn't delete the entries that are in the LDAP but not in the ldif file.
I was thinking about it, but wasn't sure it would work correctly to delete all the bdb files...
Anders.
I hope you aren't running SLES. It uses LDAP for lots and lots of stuff, and deleting the database may leave you with a system that is more than a little hozed... -- _____________________________________ John Andersen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John Andersen wrote:
I hope you aren't running SLES. It uses LDAP for lots and lots of stuff, and deleting the database may leave you with a system that is more than a little hozed...
Well, SLES (as well as other distros) use LDAP only where you set it. I don't see a problem being within system itself, but remote computers. I don't baby-sit people therefore I expect that he/she is aware of his actions consequences. Doing that on standalone/testing machine is absolutely safe. However, provided that nothing goes wrong, you can do whole operation within 15-30 seconds which doesn't make much room for the system become "hozed". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Anders Norrbring
-
John Andersen
-
Petr Klíma