【问题标题】:Add a custom attribute to person class in opendj在 opendj 中为 person 类添加自定义属性
【发布时间】:2014-07-29 14:12:02
【问题描述】:

我关注http://opendj.forgerock.org/opendj-server/doc/admin-guide/index/chap-schema.html 在 opendj 中为 perosn 类添加自定义属性

1) 创建 packt-services-user-blog 属性 2)创建packt-services-user-class类,并添加packt-services-user-blog属性 3)创建custom-attr.ldif dn: uid=user.0, ou=People,dc=example, dc=com 更改类型:修改 添加:对象类 对象类:人

添加:packt-services-user-blog packt-services-user-blog:测试 1,2,3 .... 4) ./ldap修改\ --端口 389 \ --主机名 www.openam.example.com \ --bindDN "cn=目录管理器" \ --bindPassword opendj \ --filename custom-attr.ldif

但我收到如下错误: 结果:20 Message: can't modify entity uid=user.0,ou=People,dc=example,dc=com,原因是objectClass属性中有多个重复值:person

我猜这个错误是因为我没有将属性 packt-services-user-blog 添加到 person 成功

那么我该如何解决这个问题呢?

【问题讨论】:

    标签: custom-attributes opendj


    【解决方案1】:

    我认为错误信息非常明确:不要添加 ObjectClass: Person,因为它会创建重复值。

    您需要添加您的自定义 objectClass:Packt-Services-User-Class 及其属性。

    packt-services-user-class需要定义为Auxiliary,然后可以添加到任何入口。

    问候,

    卢多维奇

    【讨论】:

    • 谢谢,我应该将 packt-class 定义为辅助。但是在 opendj 中更新属性后,我无法创建新用户。我得到 openam.idrepo.ldap.DJLDAPv3Repo 异常编号 65。我不知道为什么
    • 抱歉回复晚了,现在才注意到。错误 65 表示违反对象类。要么您使用的是旧版本的 OpenDJ,并且遇到了已知限制(重新启动将解决问题),要么您正试图强制 AM 编写不符合架构的内容。
    猜你喜欢
    • 1970-01-01
    • 2011-01-22
    • 1970-01-01
    • 1970-01-01
    • 2012-07-10
    • 1970-01-01
    • 2020-12-20
    • 1970-01-01
    • 2017-11-07
    相关资源
    最近更新 更多