用于在 Windows 7 上进行开发的本地 LDAP 服务器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2299279/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:58:59  来源:igfitidea点击:

local LDAP server for development on windows 7

.netwindowsldapdevelopment-environment

提问by jeroenh

Our (ASP.Net) application has to talk to an LDAP/Active Directory server for verifying user groups. Now several members of our team need to be able to work disconnected.

我们的 (ASP.Net) 应用程序必须与 LDAP/Active Directory 服务器通信以验证用户组。现在我们团队的几个成员需要能够断开连接。

Is there a way to set up a local LDAP server on the development machine (Windows 7 Pro)?

有没有办法在开发机器(Windows 7 Pro)上设置本地LDAP服务器?

采纳答案by marc_s

ADAM is now called Active Directory Lightweight Directory Services, and was just published in a Windows 7 version, too - download it here:

ADAM 现在被称为 Active Directory 轻量级目录服务,并且也刚刚在 Windows 7 版本中发布 - 在此处下载:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=a45059af-47a8-4c96-afe3-93dab7b5b658

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=a45059af-47a8-4c96-afe3-93dab7b5b658

AD LDS is the best solution for local LDAP development - it allows you to start and stop your AD instances at will (it runs as a Windows service), and you can even have multiple copies running.

AD LDS 是本地 LDAP 开发的最佳解决方案 - 它允许您随意启动和停止 AD 实例(它作为 Windows 服务运行),您甚至可以运行多个副本。

Check out more about AD LDS in Technetor MSDN library

TechnetMSDN 库中查看有关 AD LDS 的更多信息

回答by Rakesh Guranani

For those who are using Windows-8, the Active Directory Lightweight Directory Services (AD - LDS) is part of windows feature and we need to turn that feature on.

对于使用 Windows-8 的用户,Active Directory 轻型目录服务 (AD - LDS) 是 Windows 功能的一部分,我们需要打开该功能。

Following is the link to do so. (look into "To install AD LDS on Windows 8" section)

以下是这样做的链接。(查看“在 Windows 8 上安装 AD LDS”部分)

https://technet.microsoft.com/en-us/library/6a3bedf7-9c5b-4ada-9a51-6b794adc9ab8

https://technet.microsoft.com/en-us/library/6a3bedf7-9c5b-4ada-9a51-6b794adc9ab8

Following is the link how we can create instance of AD-LDS.

以下是我们如何创建 AD-LDS 实例的链接。

https://technet.microsoft.com/en-us/library/cc816778(v=ws.10).aspx

https://technet.microsoft.com/en-us/library/cc816778(v=ws.10).aspx

For creating users and groups and other operation use below link:

对于创建用户和组以及其他操作,请使用以下链接:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa772138(v=vs.85).aspx

https://msdn.microsoft.com/en-us/library/windows/desktop/aa772138(v=vs.85).aspx

And finally to integrate the AD - LDS with MVC below link shall be helpful

最后将 AD-LDS 与 MVC 集成在下面的链接中应该会有所帮助

authentificate asp.net mvc 5 application from adlds instance

从 adlds 实例验证 asp.net mvc 5 应用程序

回答by Ryan Schipper

Apache has recently released a new version of ApacheDS, their LDAPv3 compliant server.

Apache 最近发布了新版本的 ApacheDS,这是他们的 LDAPv3 兼容服务器。

http://directory.apache.org/apacheds/

http://directory.apache.org/apacheds/

回答by alexandrul

You can also try the OpenLDAP for Windows:

您还可以尝试Windows 版 OpenLDAP

OpenLDAP is a free suite of client and server tools that implement the Lightweight Directory Access Protocol (LDAP) for Linux. We created OpenLDAP for Windows, a package that you can also use for free. It works out of the box so no additional software is needed.

The package is based on OpenLDAP 2.4.39 and includes most of the features available on Linux. The default backend is Berkeley DB with SSL support. OpenLDAP for Windows features complete Unicode support. The package has been tested on Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Vista, Windows 7 and Windows 8.x.

OpenLDAP for Windows is free for private and commercial use.

OpenLDAP 是一套免费的客户端和服务器工具,用于为 Linux 实现轻量级目录访问协议 (LDAP)。我们为 Windows 创建了 OpenLDAP,您也可以免费使用该软件包。它开箱即用,因此不需要额外的软件。

该软件包基于 OpenLDAP 2.4.39,包括 Linux 上可用的大部分功能。默认后端是支持 SSL 的 Berkeley DB。OpenLDAP for Windows 具有完整的 Unicode 支持。该软件包已在 Windows Server 2003、Windows Server 2008、Windows Server 2012、Windows Vista、Windows 7 和 Windows 8.x 上进行测试。

OpenLDAP for Windows 可免费用于私人和商业用途。

Easy to follow installation instructions can be found here: OpenLDAP for Windows - Installation

可以在此处找到易于遵循的安装说明:适用于 Windows 的 OpenLDAP - 安装

Also, you can use Ldap Adminclient, it can connect to both OpenLDAP for Windows and ApacheDS.

此外,您可以使用Ldap Admin客户端,它可以连接到 OpenLDAP for Windows 和 ApacheDS。

回答by Jerry Coffin

Microsoft ADAMwill probablywork. As far as I know, it's only officially supported on Windows Pro up through XP, but there's a decent chance it'll work on Windows 7 as well. If it doesn't, another possibility to look at would be OpenLDAP.

微软ADAM可能工作。据我所知,它只在 Windows Pro 到 XP 上得到官方支持,但很有可能它也可以在 Windows 7 上运行。如果没有,另一种可能是OpenLDAP