2

我正在尝试在 ApacheDS 中创建自定义属性,我遵循现有属性并创建了一个名为“passwordUpdateTime”的新属性:

在此处输入图像描述

但是当我想将它添加到我的 person 对象中时,我在列表中找不到:

在此处输入图像描述

如果我强制添加属性,ApacheDS 会阻止我这样做:

在此处输入图像描述

有没有人遇到过同样的问题?

谢谢,狮子座

4

2 回答 2

0

如果 Apache DS 独立运行,您需要重新启动服务器以使属性可见(至少在里程碑 M-17 之前)Apache DS 方案不是动态的。

于 2014-09-29T14:56:17.937 回答
0

The solution worked for me.

1. Export any existing attribute as .ldif file from the schema of inetOrgPerson using ApacheDS

enter image description here

2. Open the exported attribute .ldif file in ApacheDS and edit the attribute according to your needs and Run the file

enter image description here

3. After running the file verify that your new created attribute is listed under "ou=attributeTypes,cn=inetorgperson,ou=schema"

enter image description here

4. Now export the inetOrgPerson objectClass as .ldif file, listed under "ou=objectClasses,cn=inetorgperson,ou=schema"

enter image description here

5. After exporting, verify that inetOrgPerson objectClass is exported successfully. After verifying, delete the inetOrgPerson objectClass from the location "ou=objectClasses,cn=inetorgperson,ou=schema"

enter image description here

6. Now open the exported .ldif file containing inetOrgPerson objectClass from the exported location. Put the names of your custom attributes and Run the file

enter image description here

7. Now you'll be able to use your custom added attributes. Add new entry, and must reload schema.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Boom

enter image description here

于 2019-03-13T12:33:12.953 回答