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

Delete everything in a LDAP Server

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 "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.

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