如何复制并建立一个测试的Active Directory DC [英] How to replicate and set up a test Active Directory DC

查看:87
本文介绍了如何复制并建立一个测试的Active Directory DC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的.Net code,它会读取/写入本地Active Directory域。在阅读部分已经过测试,工作正常,但我要测试的写作部分。我的应用程序将修改在Active Directory中的一些用户资料,但我不希望以防万一休息,以实现这个活的服务器上。什么是最好的方式来测试写的功能,而不用担心现场服务器出现故障?

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?

有没有一种方法来复制Active Directory到另一台服务器,并运行测试这个新的服务器在原来的Active Directory域隔离?我想加入试验机作为辅助域控制器到我的域,以便它复制的模式。然后把它断网,并在其上​​运行的测试,如果它打破了我们真正的域名并没有受此影响。

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 not affected by this.

有一个人能否提供什么是最好的办法是这样做呢?越详细越好..谢谢。

Can some one suggest what is the best approach is to do this? The more detailed the better.. Thanks.

推荐答案

您基本上有两种选择:

1)建立自己的测试领域提供全方位的AD基础设施和测试code那里。这通常是一个相当不错的大量工作,你就会有你的正常的工作领域,并为测试目的本次测试域之间进行切换。需要一个完全成熟的服务器了。

1) Set up your own test domain with a full AD infrastructure and test your code there. This is typically quite a good deal of work, and you'll have to switch between your normal work domain, and this test domain for testing purposes. Needs a full fledged server, too.

2)使用AD LDS( Active Directory轻型目录服务 ) - 以前称为AD / AM(活动目录/应用程序模式)。这是一个可安装的Windows服务,您可以在Windows XP或Vista开发计算机上使用。这是非常接近真实的广告 - 通常是足够近,可以进行测试不够好

2) Use AD LDS (Active Directory Lightweight Directory Services) - formerly know as AD/AM (Active Directory/Application Mode). This is an installable Windows service which you can use on a Windows XP or Vista developer machine. It's very close to "real" AD - usually close enough to be good enough for testing.

马克·

这篇关于如何复制并建立一个测试的Active Directory DC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆