C
Claudio Claudio
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',
assword_block => 'admin'
)
class Addressbook < ActiveLdap::Base
ldap_mapping :dn_attribute => 'cn', refix => 'ou=addressbooks'
end
p Addressbook.findall, 'John')
p Addressbook.findall, :attribute => 'givenName', :value => 'John')
both find returns []
What am I doing wrong?
thanks
ActiveLdap::Base.establish_connection(
:host => 'hostname',
:bind_dn => 'cn=admin,ou=users,dc=company,dc=it',
:base => 'ou=addressbooks,dc=company,dc=it',
assword_block => 'admin'
)
class Addressbook < ActiveLdap::Base
ldap_mapping :dn_attribute => 'cn', refix => 'ou=addressbooks'
end
p Addressbook.findall, 'John')
p Addressbook.findall, :attribute => 'givenName', :value => 'John')
both find returns []
What am I doing wrong?
thanks