From: Kouhei Sutou Date: 2007-05-02T08:51:37+09:00 Subject: Re: ActiveLdap questions Hi, You need to add some configurations. In <2af793440705011250u575c7d7fw7a753655053bc6f8@mail.gmail.com> "ActiveLdap questions" on Wed, 2 May 2007 04:50:31 +0900, "Reid Wightman" wrote: > class Entry < ActiveLdap::Base > ldap_mapping :dn_attribute=>"cn" ldap_mapping :dn_attribute=>"cn", :prefix => "" > end > ActiveLdap::Base.establish_connection( > :host => "ldap-server.domain", > :port => 389, > :bind_dn => "ou=A,ou=B,ou=c,ou=D,o=E,c=US" Perhaps, you wanted to specify search base not bind DN. You need to use :base not :bind_dn for that propose: :base => "ou=A,ou=B,ou=c,ou=D,o=E,c=US" > ) > entry = Entry.find("krwightm") > :: > When I run this, I get: > /var/lib/gems/1.8/gems/ruby-activeldap-0.8.1/lib/active_ldap/base.rb:531:in > `find_one': Couldn't find Device with DN=krwightm (cn=krwightm) > (ActiveLdap::EntryNotFound) Uhm, is your class name really Entry? It seems that your class name is Device. Thanks, -- kou