【发布时间】:2012-01-23 20:13:43
【问题描述】:
我想使用 JNDI 在 OpenDS 中创建一个新的 Base DN (dc=test,dc=dom),但不知道如何去做。
我尝试使用:
context.createSubcontext("dc=test,dc=com", attributes);
我确定这不是正确的方法,因为它只是失败并出现以下问题:
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'
使用 JNDI 可以做到这一点吗?
【问题讨论】: