Hi,
Simple question but I can't find the answer anywhere: is Active Directory transaction-aware?
In other words, will the following change be rolled back (since I didn't call scope.Complete()
):
using (var scope = new TransactionScope())
{
DirectoryEntry entry = ...;
entry.Properties["givenName"].Value = "New Given Name";
entry.CommitChanges();
}
If not, is it possible to enable this somehow? Right now I have code that performs database updates and corresponding AD updates and I have compensating logic for the AD updates if they somehow fail. This solution is far from optimal.
Kind regards, Ronald Wildenberg