|
Two reasons - You are setting the attribute with the wrong data type. For example, an attribute of type 'Distinguished Name' is being assigned an integer value. Second, you are trying to modify the RDN of the entry. Modifying the RDN of a directory entry is equivalent to renaming the entry. Context.rename() should be used for that.
|
|