How to create a partition in the root in ApacheDS server programmatically using JNDI/LDAP?

余生长醉 提交于 2019-12-13 19:29:47

问题


I'm trying to create a new partition in the root of a ApacheDS Lightweight Directory using JNDI/LDAP. I've failed trying to add it using bind and createSubcontext within the root context. I'm able to create a partition using Apache Directory Studio. Is there a way to programmatically add one using JNDI?


回答1:


You cannot create a new partition using code, you first need to configure the partition in the server.xml(if you are using version <= 1.5.7) or in the ou=config area if you are using the latest trunk. Once you configure the partition and restart the server then using code you can create the context entry after which the partition is visible for performing other operations.



来源:https://stackoverflow.com/questions/4935612/how-to-create-a-partition-in-the-root-in-apacheds-server-programmatically-using

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!