Forum: Ruby on Rails LDAP issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F5b33394463d87734996f883a9a7be69?d=identicon&s=25 James Smith (Guest)
on 2006-02-28 17: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
http://hivelogic.com/articles/2005/12/01/ruby_rail...).
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 Smith
Application Systems Analyst
University of Arizona
This topic is locked and can not be replied to.