I have .net code that will read/write to our local Active Directory domain. The reading part has been tested and works fine, but I wish to test the 'writing' part. My application will be modifying some user profiles in active directory but I don't want to implement this on the live server just in case something breaks. What's the best approach to test 'write' functionality without risking failure of the live server?
Is there a way to replicate Active Directory onto another server and run tests on this new server in isolation of the original Active Directory domain? I was thinking of adding a test machine as a secondary domain controller onto my domain so it replicates the schema. Then taking it off the network and running tests on it, and if it breaks our real domain is no effected by this.
Can some one suggests what is the best approach is to do this? The more detailed the better.. Thanks.