2016-04-27 3 views
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です。

答えて

0

最後に、自分自身で問題を解決することができました。

これは私がMAYではなくMUSTの属性を持つ唯一つの構造と更新オブジェクトクラスが存在することができるので、オブジェクトクラスの抽象への構造変更

  1. 何をしたかです。
  2. は、ldap modifyコマンドのadmin portの代わりにldap portを使用しました。

なぜ私はcant objectclassを作成する必要があるのか​​まだ分かりませんでしたか?この鶏と卵は何か問題ですか?

+0

私はあなたが正しいと思う、それは鶏と卵のものです。属性がDNの一部を形成しない限り、MUSTを使用する理由はほとんどありません。 – EJP

+0

また、要約を補助と混同しています。 上記の例では、新しいobjectclass値をエントリに追加しないため、違反が発生することはありません。 –

+0

@BertoldKolics、あなたは正しいです。私は再びそれをリフレッシュする必要があります。 – CBR

関連する問題