ruby-ldap gem for Windows
Ruby/LDAP is a useful ruby library that allows you to connect to and manipulate LDAP directories like OpenLDAP and Active Directory. Unfortunately
- the library isn’t distributed as a gem; and
- depends on native LDAP libraries for its operation
This puts it out of reach for many ruby developers deploying to a Windows environment without an installed C compiler. In the past I’ve leaned on a few good Samaritans that posted pre-compiled versions, but unfortunately most of these have either been taken down or are really old.
So, in desperate need of an install on a new windows VM I just built it from source. If you trust our binaries you can download the gem-ified ruby-ldap build based on the latest 0.9.7 release and compiled using Visual Studio 2008.
unzip ldap-0.9.7-mswin32.gem.zip gem install ldap-0.9.7-mswin32.gem
I’ve tested this on a few boxes, though your mileage may vary.

Monday, October 20, 2008
Fishstickkitty says:
Worked perfectly. Thanks for the build !
Monday, December 08, 2008
flyman says:
Wow, Thanks!!
Wednesday, December 10, 2008
Oskars says:
Hi, I tried your gem too. Worked well for me
Tuesday, February 03, 2009
Kevin says:
Thanks, worked well.
Wednesday, March 11, 2009
spritesun says:
I am wondering if it could work on linux machine, for I want to deploy the app in linux machine, but connect to a windows ldap(active directory) server. Have you test that package on linux box?
Tuesday, July 14, 2009
Rafael Rosa Fu says:
Hi,
Thanks for the binaries but I must alert you guys I had a problem when I tried to use SSLConn.new. I don’t know why but it says the new method doesn’t accept more than 2 parameters, so I was unable to pass start_tls = true. I tried to do the same using a Linux library and it worked very well, so I guess the problem is the Win binary.
Cheers
Thursday, February 18, 2010
Javier says:
Thanks! Now, you’re the good samaritan