Jak smazat v LDAP cely podstrom

Vladimir Naprstek vladimir.naprstek na scplyn.cz
Pondělí Listopad 10 09:11:58 CET 2003


Pavel Lisy napsal(a):
> Nevite nekdo, 
> 
> jak lze z prikazove radky smazat cely podstrom LDAP databaze? Cetl jsem
> man ldapdelete a hledal na googlu, ale tam jsem mezi 50000 odpovedmi
> nebyl schopen najit spravny priklad.
> 
> Jde to nejak jednoduse? Umim to pouze v "gq", ale to se neda nijak
> zautomatizovat.
> 
> Predem diky
> 
> Pavel
> 
ldapdelete -x -D "....." -w password -r "dn"

viz man ldapdelete:
-r     Do a recursive delete.  If the DN specified isn't a leaf, its 
children, and all their children are deleted down the tree.  No 
verification is done, so if you add this switch, ldapdelete will happily 
delete large portions of your tree.  Use with care.

-- 
Vladimír Náprstek
mail: vladimir.naprstek na scplyn.cz



Další informace o konferenci Linux