[Ruby-activeldap-discuss] activeldap 0.8.2 with pure ruby ldap

Daniel Pfile daniel at pfile.net
Tue May 29 17:45:53 EDT 2007


m.zeckinger wrote:
> hi guys, i was just wondering, since in the release notes of
> activeldap 0.8.2 it is mentioned that it's supporting Net::LDAP from
> now on, how to use that? any advice? is it enough to have the
> ruby-net-ldap gem installed?
>
>   
Turns out this is really simple!

In your config or establish_connection just add ":adapter => 'net-ldap'"
in addition to whatever else you need, like so:

ActiveLdap::Base.establish_connection(
  :adapter => 'net-ldap',
  :base => 'dc=whatever'
  .. etc ..
)

Works like a charm, this is a great feature (and it runs on sol8 just
fine!), thanks all.

-- Daniel


More information about the Ruby-activeldap-discuss mailing list