I'm trying to return a CSEntryChange with ObjectModificationType Delete in my implementation of IMAExtensible2CallImport.GetImportEntries:
var entry = CSEntryChange.Create(); entry.ObjectType = "SomeObjectType"; entry.DN = "SomeDN"; entry.ObjectModificationType = ObjectModificationType.Delete;
However, when that entry is returned, I get a "missing-anchor-component" error in the console. The anchor attribute, in this case, is called "Name".
However, if I try to add the attribute to the AttributeChanges collection with CreateAttributeAdd, I get an exception:
System.ArgumentException: AttributeModificationType Add is invalid when the ObjectModificationType is set to Delete.
Example:
entry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("Name", "SomeName"));
However, the "CreateAttributeDelete" operation does not let me specify a value for the attribute.
How am I supposed to pass the anchor attribute value in this case?
I could not find any example in the documentation.
Paolo Tedesco - http://cern.ch/idm