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

Delete everything in a LDAP Server



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I was going to try to use syncrepl to create a mirror of my LDAP tree
on a second machine.  I figured that it not only backs up my important
user data, but also gives me a local cache that I can use to
authenticate local services against so that a failure of one server
does not bring down the other.

However, there seems to be too many problems with it right now to be
seriously considered in a production environment.  So, I am on to plan
B (C?).  What I would like to do until that feature is fully cooked,
is use create a script that does a slapcat on the main server, and
store that file in a central location.  I would then like to come
along with the second server and completely dump, then reload the tree
from the backup using slapadd.

I tried to do a ldapdelete on the top level object, but it just told
me "Unwilling to perform" and gave no further details.  The exact
error is:

# ldapdelete -x -D "cn=admin,dc=example,dc=com" -w netge3k -h
127.0.0.1 "dc=example,dc=com"
Delete Result: Server is unwilling to perform (53)
Additional info: shadow context; no update referral

any hints on what I am doing wrong?  I have my suspicions, but think I
will hear what you guys have to say first without polluting your
thinking with my screwup.

Thx
Kevin Fries
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB5yzdiFq1Eo16+CgRAi+vAJ9PVnpwqHgGBDeSKIBwO4RmxMn1jgCfRyQC
lQi4P013VrxQUOv+J6zFhZU=
=3D4B
-----END PGP SIGNATURE-----