JNDIを使用してOpenDSで新しいベース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を使用して実行できますか?