如何为LDAP结构定义自增编号?
我有一个属性(groupIDNumber),我想让它作为自动递增数字?
我们如何定义该属性?
谢谢你的帮助,
-nm
I have one attribute (groupIDNumber), I want to make it work as auto-increment number?
How can we define that attr?
Thank for your help,
-nm
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此博客建议您可以通过创建一个排序的新对象来实现等效的效果的一个序列。 此处报告了 OpenLDAP 中的有效实现。该对象定义如下(注意:不是我的代码,只是重现报告的内容):
然后将 LDIF 条目写为:
并调用:
This blog suggests that you can achieve the equivalent by creating a new object that is sort of a sequence. A working implementation in OpenLDAP is reported here. The object is defined as follows (note: not my code, just reproducing what was reported):
LDIF entiries are then written as:
And called with:
这不是 LDAP 协议的一部分,也不是标准的做法。这是您通常在客户端逻辑中执行的操作。但是,根据您使用的 LDAP 服务器,可能可以使用插件或扩展来实现。
This is not part of the LDAP protocol, nor is it a standard thing to do. It is something you would normally do in your client-side logic. However, depending on which LDAP server you are using, it may be possible to achieve using a plugin or extension.