Summary: Reimplement ds_remove without setuputil code
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=247215
This is the first step of ds_remove. With this change, this command line cleans up the
Configuration entries from the Configuration server.
register_server.pl -v -m <mappath>/dirserver.map -p <port> -w <passwd>
-d <infdir> -i <dynamic_inffile> 10rm_dsdata.ldif.tmpl
------- Additional Comments From nhosoi(a)redhat.com 2007-07-05 21:14 EST -------
Created an attachment (id=158634)
--> (
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=158634&action=...)
cvs diff ldapserver/ldap/admin/src/scripts/Util.pm.in
Description:
1) introduced delete entry operation. It supports an entry which contains
"changetype: delete" as follows:
dn: cn=slapd-%dsid%, cn=%brand% Directory Server, cn=Server Group, cn=%fqdn%,
ou=%domain%, o=NetscapeRoot
changetype: delete
It deletes all the subordinate entries.
2) cleaned up check_and_add code a bit (it's not "and_add" any more, tho...
):
------- Additional Comments From nhosoi(a)redhat.com 2007-07-05 21:17 EST -------
Created an attachment (id=158635)
--> (
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=158635&action=...)
New: tmpl file used for remove
File: adminserver/admserv/schema/ldif/10rm_dsdata.ldif.tmpl
Description: remove tmpl file to clean up the Configuration entries belonging
to the removed Directory Server instance.
Thanks,
--noriko