0
cn = schemaに4つの新しい属性を作成し、4つの属性をMUSTとして設定した新しいオブジェクトクラスを作成しました。新しいオブジェクトクラス/属性を既存のldapエントリに追加するとエラーが返される
オブジェクトクラスを既存のエントリに追加しようとしましたが、これらの4つの新しい属性がldapエントリ用に設定されていないため、明らかにエラーが返されます。
ldifファイルを作成してldapmodifyを実行しましたが、オブジェクト違反エラーが発生しました。誰もがこのエラーの原因と何かを私に何かが不足している場合tellmeことができます。コマンドを実行した後
LDIF
#ldapmodify.bat -h localhost -p 1389 -D "cn=Directory Manager" -w xxxxx -a -f entry.ldif
dn: uid=user.0,ou=People,dc=example,dc=com
changetype: modify
add: disabledFlag
disabledFlag: n
-
add: passwordData
passwordData:< file:/C:\\oud\\asinst_1\\OUD\\bat\\images.png
-
add: anonymousID
anonymousID: nah
-
add: challengeResponse
challengeResponse: nah
エラー。
Processing MODIFY request for uid=user.0,ou=People,dc=example,dc=com
MODIFY operation failed
Result Code: 65 (Object Class Violation)
Additional Information: Entry uid=user.0,ou=People,dc=example,dc=com cannot not be modified because the resulting entry would have violated the server schema: Entry uid=user.0,ou=People,dc=example,dc=com violates the Directory Server schema configuration because it includes attribute anonymousID which is not allowed by any of the objectclasses defined in that entry
LDAPはOUD 11gR2です。
私はあなたが正しいと思う、それは鶏と卵のものです。属性がDNの一部を形成しない限り、MUSTを使用する理由はほとんどありません。 – EJP
また、要約を補助と混同しています。 上記の例では、新しいobjectclass値をエントリに追加しないため、違反が発生することはありません。 –
@BertoldKolics、あなたは正しいです。私は再びそれをリフレッシュする必要があります。 – CBR