This will guide you through adding new domain to LDAP server and TNSadmin Web Manager GUI.
New domain will be created as a new LDAP database in LDAP root.
mkdir /var/lib/ldap/newdomain.com chown -R ldap: /var/lib/ldap/newdomain.com
/tmp/domain-newdomaincom.ldif
with structure definition
# /tmp/domain-newdomaincom.ldif dn: olcDatabase=bdb,cn=config changetype: add objectClass: olcBdbConfig olcDatabase: bdb olcSuffix: dc=newdomain,dc=com olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by dn.base="cn=Manager,dc=global" manage olcDbDirectory: /var/lib/ldap/newdomain.comCreate database
ldapadd -f /tmp/domain-newdomaincom.ldif -D cn=Manager,dc=global -W
Now we have an empty database, and need to populate it with new structure. To do this, create another ldif file /tmp/newdomaincom-init.ldif
with content
# /tmp/newdomaincom-init.ldif dn: dc=newdomain,dc=com objectClass: top objectClass: dcObject objectClass: organization o: newdomain.com domain dc: newdomain dn: cn=OracleContext,dc=newdomain,dc=com objectclass: orclContext cn: OracleContextand execute ldapadd to populate database
ldapadd -x -D cn=Manager,dc=global -W -f /tmp/newdomaincom-init.ldifAt this point, our database is ready to be filled with TNS records.
You can start using newly added domain in TNSadmin Web Manager GUI after adding it to it's configuration.
Find and opentnsadmin.conf
and add your new domain to db.domains, e.g.
db.domains = tnsadmin.com, tnsadmin.net, newdomain.com
and restart application