From: Glen Holcomb Date: 2008-10-28T22:56:22+09:00 Subject: Re: LDAP authentication in Windows 2003 AD ------=_Part_78849_22311809.1225202214598 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry Damjan, I didn't read your first message closely enough. Had I noticed you weren't using net-ldap I would have suggested you do so. It works great for me with all things AD and LDAP (all things I've done anyway). On Tue, Oct 28, 2008 at 7:43 AM, Damjan Rems wrote: > > And then in a desperate attempt (when I was searching for something > completly different) I stumbelt upon this: > > ------------------------------------------ > gem install ruby-net-ldap > > > require 'rubygems' > require 'net/ldap' > > ldap = Net::LDAP.new > ldap.host = 'mydc' > ldap.port = 389 > ldap.auth "usr@domain.com", "pwd" > if ldap.bind > p 'authentication succeeded' > else > p ' authentication failed' > end > ------------------------------------------- > > and it works. > > > by > TheR > -- > Posted via http://www.ruby-forum.com/. > > -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_78849_22311809.1225202214598--