From: Francis Cianfrocca Date: 2007-09-25T08:41:24+09:00 Subject: Re: active directory ------=_Part_18540_24926525.1190677283130 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/24/07, julik wrote: > > > On Sep 24, 2007, at 11:14 PM, Francis Cianfrocca wrote: > > You can treat AD as any LDAP server. Look at the Net::LDAP#bind and > > #bind_as > > methods. > > Well, I recently did it the nasty way (I just post to the relevant > Remote Web Workplace server for a specific domain). > Certainly not the proper-clean way to do it, but beats the hell out > of setting up the LDAP toolchain, in my book anyways. I'm not sure how that would be any easier, or what you mean by setting up an LDAP "toolchain" - Net:::LDAP is a self-contained library in pure Ruby. All you have to do is install it like any other Ruby library. Calling Net::LDAP#bind to authenticate against an LDAP directory or A/D is a one-liner. (Two lines if you count require 'net/ldap') ------=_Part_18540_24926525.1190677283130--