I am programmatically changing an active directory attribute which is a custom attribute. This attribute is multivalued and has Syntax type "Distinguised Name". This attribute is just a list of objects that are referenced somewhere else.
Now, I have a server that is running on .NET and accessing the ActiveDirectory objects.
when I run the server, delete and object from the Property, and then try add it back, I get an error that a constraint violation occurs when I try to commit the changes.
when I run the server, delete the object, then restart the server, then add it back, everything works fine.
This method call is static, and there is no state in the method call that is different between starting and restrating the server. Any idea what could be causing this?