Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

local LDAP server for development on windows 7

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.

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

like image 936
jeroenh Avatar asked Feb 19 '10 20:02

jeroenh


People also ask

How do I install LDAP on Windows 7?

Downloading and installing openLDAP on windows 7 Extract the Zip downloaded file. We can extract the file in any directory. I have extracted to the location: D:\software\Development\LDAP\ on my system. Run the extracted .exe file to start the OpenLDAP installation.

How do I start LDAP server on Windows?

Sign in to a computer that has the AD DS Admin Tools installed. Select Start > Run, type ldp.exe, and then select OK. Select Connection > Connect. In Server and in Port, type the server name and the non-SSL/TLS port of your directory server, and then select OK.


4 Answers

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

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

like image 95
Ryan Schipper Avatar answered Oct 21 '22 19:10

Ryan Schipper


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

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.

Check out more about AD LDS in Technet or MSDN library

like image 45
marc_s Avatar answered Oct 21 '22 19:10

marc_s


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.

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

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

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

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

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

authentificate asp.net mvc 5 application from adlds instance

like image 39
Rakesh Guranani Avatar answered Oct 21 '22 19:10

Rakesh Guranani


You can also try the OpenLDAP for Windows:

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.

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

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

like image 39
alexandrul Avatar answered Oct 21 '22 19:10

alexandrul