From: Sven Schott Date: 2009-11-12T07:07:30+09:00 Subject: Re: Active_Ldap Base Config Question --0016e646a2d215a67104781fa71e Content-Type: text/plain; charset=ISO-8859-1 I just installed and tried it and got the same thing. I read the docs and found that you need to subclass Base to get a mapping. e.g. class User < ActiveLdap::Base ldap_mapping end And the config is different. So here is what I got so far: require 'active_ldap' ActiveLdap::Base.setup_connection( :host => "hostname", :bind_dn => "username", :password => "passwords", :base => "DC=your,DC=ldap,DC=base" ) class User < ActiveLdap::Base ldap_mapping end That gets me the connection at least. On Thu, Nov 12, 2009 at 8:44 AM, Sven Schott wrote: > Sorry I just assumed: are you running rails? That's what I was using it > with so I just made the assumption. Better question: What version of ruby > and gem are you running? > > On Thu, Nov 12, 2009 at 8:37 AM, Sven Schott wrote: > >> Ah, my bad. For every complex problem there is a solution that is clear, >> simple and wrong :) >> >> The ActiveDirectory lib works for me but hasn't been updated in a while. >> It can be found at: >> >> http://code.google.com/p/ruby-activedirectory/ >> >> Setup is fairly much the same: >> >> ActiveDirectory::Base.server_settings = { >> :host => "hostname or ip address", >> :port => 3268, >> :username => "username", >> :password => "password", >> :domain => "your.ad.domain.here", >> :base_dn => "DC=your,DC=base,DC=dn" >> } >> >> But I get the feeling that you might have the same issue. I seem to >> remember that this was a rails+gem version problem since I had this this >> same issue with the activedirectory gem once upon a time. What version of >> rails are you using? Did you upgrade it recently? >> >> On Thu, Nov 12, 2009 at 7:21 AM, jackster the jackle > > wrote: >> >>> Putting in the full object path renders the same error message, I'm >>> afraid. >>> >>> To be honest, I don't have a preference toward Active_Ldap, I just >>> thought that it was the most common way to do AD lookups but if >>> ActiveDirectory works for you, can you please give me a link to the >>> binary (unleass it's a gem?) and perhaps a sample of a base config? >>> >>> thanks >>> >>> jack >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> >> > --0016e646a2d215a67104781fa71e--