From: Glen Holcomb Date: 2009-08-01T06:40:10+09:00 Subject: Re: Ruby-net-ldap fail --001636c5bbd16ca0020470074339 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Fri, Jul 31, 2009 at 3:22 PM, Ben Bleything wrote: > On Fri, Jul 31, 2009 at 2:15 PM, Bruno Sousa wrote: > > Hi, > > I am using ruby-net-ldap to connect to a Active Directory server. > > The problem is that it only works for users that are in "Users" > > Organization unit. > > (See attachment) =3D=3D> it can connect with joe user. But it fails to > > connect with users from OU "terceiros" for example. > > > > why is that? > > Likely because the server wants a full DN and ruby-net-ldap is > assuming ou=3DUsers,dc=3D... behind the scenes. Try to auth using the > full DN, I'll bet it's going to work. > > > Is there a better gem for that? > > There is a better library, yes. http://ruby-ldap.sourceforge.net/ > > Ben > > In my experience you need to provide account@full.base.of.user.dn as the username when connecting to AD. --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --001636c5bbd16ca0020470074339--