Issue when deleting an organization and attempting to use it's domain name
807574Apr 15 2006 — edited Feb 11 2020Hi,
I had an organization created called "corenode.net". I have now since finished testing, and wanted to instead make corenode.net a domain alias of corenode.com. I deleted the org corenode.net (using DA), and then attempted to add it as an alias. It fails. I then added corenode.org, and it worked fine. Out of curiosity, I did an ldapsearch, and found tons of entries left with corenode.net in the dn. Apparently deleting the organization with DA isn't actually deleting it. ;)
There are a lot of entries, deleting them one by one would take ages. I'm no ldapmodify guru, but is there some easier way?
# ldapsearch -h zone1.corenode.com -D "cn=Directory Manager" -b "dc=corenode,dc=com" "objectClass=*" | grep corenode.net |grep "dn:" > blah.txt
Enter bind password:
# cat blah.txt
dn: o=corenode.net,dc=corenode,dc=com
dn: ou=People,o=corenode.net,dc=corenode,dc=com
dn: ou=Groups,o=corenode.net,dc=corenode,dc=com
dn: ou=services,o=corenode.net,dc=corenode,dc=com
dn: ou=iPlanetAMPolicyConfigService,ou=services,o=corenode.net,dc=corenode,dc=
dn: ou=1.0,ou=iPlanetAMPolicyConfigService,ou=services,o=corenode.net,dc=coren
dn: ou=iPlanetAMAuthConfiguration,ou=services,o=corenode.net,dc=corenode,dc=co
dn: ou=1.0,ou=iPlanetAMAuthConfiguration,ou=services,o=corenode.net,dc=corenod
dn: ou=iPlanetAMAuthLDAPService,ou=services,o=corenode.net,dc=corenode,dc=com
dn: ou=1.0,ou=iPlanetAMAuthLDAPService,ou=services,o=corenode.net,dc=corenode,
dn: ou=Instances,ou=1.0,ou=iPlanetAMAuthLDAPService,ou=services,o=corenode.net
dn: ou=iPlanetAMAuthService,ou=services,o=corenode.net,dc=corenode,dc=com
dn: ou=1.0,ou=iPlanetAMAuthService,ou=services,o=corenode.net,dc=corenode,dc=c
dn: ou=GlobalConfig,ou=1.0,ou=iPlanetAMAuthService,ou=services,o=corenode.net,
dn: ou=PluginConfig,ou=1.0,ou=iPlanetAMAuthService,ou=services,o=corenode.net,
dn: ou=Instances,ou=1.0,ou=iPlanetAMAuthService,ou=services,o=corenode.net,dc=
dn: ou=o=corenode.net^dc=corenode^dc=com^^DatastoresReadOnly,ou=Policies,ou=de
dn: ou=o=corenode.net^dc=corenode^dc=com^^PolicyAdmin,ou=Policies,ou=default,o
dn: ou=o=corenode.net^dc=corenode^dc=com^^RealmAdmin,ou=Policies,ou=default,ou
dn: ou=o=corenode.net^dc=corenode^dc=com^^RealmReadOnly,ou=Policies,ou=default
dn: uid=admin_corenode.net,ou=People,o=corenode.net,dc=corenode,dc=com
dn: cn=Postmaster,ou=Groups,o=corenode.net,dc=corenode,dc=com
dn: uid=ormandj,ou=People,o=corenode.net,dc=corenode,dc=com
dn: uid=usert,ou=People,o=corenode.net,dc=corenode,dc=com
#
Not only that, but would this truly get rid of all references to the old domain?