c# - 在开发/测试环境中模拟 Active Directory 登录

标签 c# wpf active-directory windows-xp windows-authentication

目前正在构建一个 WPF 应用程序,该应用程序将在用户登录域 (DC) 上的 Windows PC 的环境中运行。该应用程序将在启动时要求用户再次输入他们的登录名和密码,并且将根据 Active Directory 验证登录名/密码(如果我的术语在这里不正确,请原谅我)。

登录是全有或全无;如果他们的密码正确,则(当前)无需担心检索组、权限或任何类似性质的内容。

开发环境不是基于 AD 的,也不在域上。是否有任何选项可以模拟这种登录,而无需通过设置域 Controller 并向其添加开发和测试环境机器的过程?

在项目过程中会有一些机会进行部署测试(IOW 创建一个测试登录应用程序,将其部署给用户并确保登录在最终部署之前有效)。同时,我将需要使用某种在测试/开发环境中工作的排序实现。

有什么想法吗?你会建议反对模拟这个来代替设置 DC 吗?

最佳答案

使用ADAM (Windows Server 2003 Active Directory 应用模式)

For organizations that require flexible support for directory-enabled applications, Microsoft has developed Active Directory Application Mode (ADAM). ADAM is a Lightweight Directory Access Protocol (LDAP) directory service that runs as a user service, rather than as a system service. Active Directory Application Mode represents a breakthrough in directory services technology that provides flexibility and helps organizations avoid increased infrastructure costs.

也就是说,您可以在桌面上运行的 Microsoft 免费 AD 服务器。

关于c# - 在开发/测试环境中模拟 Active Directory 登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2142555/

相关文章:

c# - 如何在 Monotouch 中实现多个委托(delegate)?

c# - DataGridTextColumn 值不断变回(如果无效)

wpf - 执行 bool 值或可见性的最佳方法

powershell - 仅将选定的组成员资格复制到新用户

c# - 如何使用 DataTable.Select() 选择 Null/空值?

c# - 打开文件对话框错误?

c# - 如何更改时间选择器的突出显示背景?

c# - 强制 PrincipalContext 连接到特定服务器

asp.net - ASP站点可与Win7 IE 11一起使用,但不能与Win10 IE11一起使用

c# - 连接和更新数据表