Forum: Ruby on Rails LDAP issues

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
James S. (Guest)
on 2006-02-28 18:31
(Received via mailing list)
Greetings Rails community!  I am working on a Rails 1.0.0 application
that uses LDAP, and within Rails (using script/server or
script/console), I always get the message: "can't initialise an LDAP
session".  The Ruby LDAP bindings work just fine in irb.

I am running Mac OSX 10.4 Server, with Ruby 1.8.4 (built via the
instructions on
I have moved both the Ruby LDAP bindings .bundle file to my Rails app's
lib directory, along with the libldap.dylib and libldap_r.dylib
libraries, because when this issue was mentioned on the list before, it
seemed related to the ldap libraries not binding.

Any ideas on how I can get the LDAP session to initialize?  Thanks much,

James S.
Application Systems Analyst
University of Arizona
This topic is locked and can not be replied to.