开发者

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

开发者 https://www.devze.com 2023-02-09 13:00 出处:网络
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

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号