|
Re: Ruby-net-ldap fail: msg#02416ruby-talk
On Fri, Jul 31, 2009 at 3:22 PM, Ben Bleything <ben@xxxxxxxxxxxxx> wrote: > On Fri, Jul 31, 2009 at 2:15 PM, Bruno Sousa<brgsousa@xxxxxxxxx> 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) ==> 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=Users,dc=... 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@xxxxxxxxxxxxxxxxxxxx as the username when connecting to AD. -- "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)
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |