I would like to create a new Base DN (dc=test,dc=dom) in OpenDS using JNDI, but not sure how to go about it.
I tried using:
context.createSubcontext("dc=test,dc=com", attributes);
which I'm sure is not the right approach as it just fails with the following:
javax.naming.NameNotFoundException: [LDAP: error code 32 - The provided entry dc=test,dc=dom cannot be added because its suffix is not defined as one of the suffixes within the Directory Server]; remaining name 'dc=test,dc=dom'
Is this possible to do using JNDI?