如何使用JNDI/LDAP以编程方式在ApacheDS服务器的根目录中创建分区? [英] How to create a partition in the root in ApacheDS server programmatically using JNDI/LDAP?

查看:229
本文介绍了如何使用JNDI/LDAP以编程方式在ApacheDS服务器的根目录中创建分区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用JNDI/LDAP在ApacheDS轻型目录的根目录中创建一个新分区.我尝试在根上下文中使用bind和createSubcontext添加它失败.我可以使用Apache Directory Studio创建分区.有没有一种方法可以使用JNDI以编程方式添加一个?

解决方案

您无法使用代码创建新分区,首先需要在 server.xml(如果使用的是< = 1.5.7版),或者如果使用的是最新干线,则位于ou = config区域. 配置分区并重新启动服务器后,即可使用代码创建 上下文条目,在该条目之后将可见该分区以执行其他操作.

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.

这篇关于如何使用JNDI/LDAP以编程方式在ApacheDS服务器的根目录中创建分区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆