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

发布于 2024-08-19 10:18:17 字数 416 浏览 1 评论 0原文

目前正在构建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鸩远一方 2024-08-26 10:18:17

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

对于需要的组织
灵活支持目录功能
微软开发的应用程序
活动目录应用模式
(亚当)。 ADAM 是一个轻量级
目录访问协议 (LDAP)
以用户身份运行的目录服务
服务,而不是作为一个系统
服务。活动目录应用程序
模式代表着突破
目录服务技术
提供灵活性并提供帮助
组织避免增加
基础设施成本。

即,来自 Microsoft 的免费 AD 服务器,您可以在桌面上运行。

Use ADAM (Windows Server 2003 Active Directory Application Mode)

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.

That is, a free AD server from Microsoft that you can run on your desktop.

浅沫记忆 2024-08-26 10:18:17

如果您使用的是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文