From: Claudio Claudio Date: 2007-07-19T22:33:02+09:00 Subject: problem doing find in ActiveLdap require 'active_ldap' ActiveLdap::Base.establish_connection( :host => 'hostname', :bind_dn => 'cn=admin,ou=users,dc=company,dc=it', :base => 'ou=addressbooks,dc=company,dc=it', :password_block => 'admin' ) class Addressbook < ActiveLdap::Base ldap_mapping :dn_attribute => 'cn', :prefix => 'ou=addressbooks' end p Addressbook.find(:all, 'John') p Addressbook.find(:all, :attribute => 'givenName', :value => 'John') both find returns [] What am I doing wrong? thanks -- Posted via http://www.ruby-forum.com/.