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 changetype: modify add: objectClass objectClass: person
追加: packt-services-user-blog packt-services-user-blog: Testing 1,2,3 .... 4) ./ldapmodify \ --port 389 \ --hostname www.openam.example.com \ - -bindDN "cn=Directory Manager" \ --bindPassword opendj \ --filename custom-attr.ldif
しかし、次のようなエラーが表示されます: Result:20 Message: can not modified entity uid=user.0,ou=People,dc=example,dc=com,Cause there are multiple reduplicated value in attribute objectClass : person
このエラーは、属性 packt-services-user-blog を person に正常に追加しなかったことが原因だと思います
では、どうすればこの問題を解決できますか?