在开发/测试环境中模拟 Active Directory 登录
目前正在构建一个 WPF 应用程序,该应用程序将在用户登录域 (DC) 上的 Windows PC 的环境中运行。该应用程序将在启动时要求用户再次输入登录名和密码,并且将根据 Active Directory 验证登录名/密码(如果我的术语不正确,请原谅我)。
登录是全有或全无;如果他们的密码正确,则(当前)无需担心检索组、权限或任何此类性质的内容。
开发环境不是基于AD的,并且不在域上。是否有任何选项可以模拟这种登录,而无需经历设置域控制器并向其中添加开发和测试环境计算机的过程?
在项目过程中将有一些机会进行部署测试(IOW创建一个测试登录应用程序,将其部署给用户并确保在最终部署之前登录正常)。同时,我需要使用某种在测试/开发环境中工作的排序实现。
有什么想法吗?您是否建议反对对此进行模拟来代替设置 DC?
Currently building a WPF app that will run in an environment where the user logs into Windows PC which is on a domain (DC). The app will ask the user to enter their login and password again when it starts up, and the login/password will be verified against Active Directory (forgive me if my terminology is not correct here).
The login is all-or-nothing; if their password is correct, there is no (current) concern with retrieving groups, rights or anything of that nature.
The development environment is not AD-based, and is not on a domain. Are there any options for simulating this kind of login without going through the process of setting up a domain controller and adding the development and test environment machines to it?
There will be some opportunity to do deployment testing during the course of the project (IOW create a test login app, deploy it to the user and make sure the login works before final deployment). At the same time, I will need to use some sort implementation that works in the test/dev environment.
Any thoughts? Would you recommend against simulating this in lieu of setting up a DC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 ADAM(Windows Server 2003 Active Directory 应用程序模式)
即,来自 Microsoft 的免费 AD 服务器,您可以在桌面上运行。
Use ADAM (Windows Server 2003 Active Directory Application Mode)
That is, a free AD server from Microsoft that you can run on your desktop.
如果您使用的是 Windows 8,您可以转到添加/删除 Windows 功能并检查 AD LDS。完成配置后,运行 mmc 并添加 ADSI Edit。它将默认为网络上的域控制器,您可以填充自己的 AD 实例。
If you're on Windows 8 you can go to Add/Remove Windows Features and check AD LDS. Once it's finished configuring, run mmc and add ADSI Edit. It'll default to a domain controller on the network and you can populate your own instance of AD.