From: Brian Candler Date: 2009-06-02T16:50:11+09:00 Subject: Re: Something Not going with my LDAP using SSL This isn't really going anywhere, so I'll ask the same question one more time. What happens if you do this in irb? $ irb irb(main):001:0> require 'openssl' => true Do you get "true" like I do, or something else? > I am not finding LDAP::SSLConn or SSLConn in my /usr tree ... > Can you recommend a way to get the sources off Ubuntu? 1. Go to google 2. Type "ruby LDAP::SSLConn" The top hit is the ruby-ldap project in Sourceforge. So that's the easiest way to look at the current source. The next question is, how did you install ruby-ldap? (1) If you installed it using 'gem install ...' then the code will be in your gems directory, which I believe is /var/lib/gems/1.8 in Ubuntu (I don't have an Ubuntu box with Ubuntu ruby to hand right now) (2) If you installed it from an Ubuntu package, then maybe it has been broken in a Debian way to separate out the ssl functionality. $ apt-cache search ldap | grep ruby libactiveldap-ruby - an object-oriented interface to LDAP for Ruby libactiveldap-ruby-doc - an object-oriented interface to LDAP for Ruby libactiveldap-ruby1.8 - an object-oriented interface to LDAP for Ruby libldap-ruby1.8 - OpenLDAP library binding for Ruby 1.8 So if you have libldap-ruby1.8 installed, you can find the files using dpkg-query -L libldap-ruby1.8 If this contains only compiled binaries (e.g. .so libraries) then you can get the Ubuntu source apt-get source libldap-ruby1.8 which will create the source inside a new directory under the current directory. The debian/changelog suggests that ssl support should be included: libldap-ruby (0.8.0-1) unstable; urgency=low * new upstream version. * enabled ssl support. However the dependencies in debian/control don't list libopenssl-ruby1.8, so I'm not entirely convinced it's correct. Anyway, all the C code is there for you to look at. If it were me, I would remove the debian libldap-ruby1.8 and install ruby-ldap again from source, checking carefully all the configure options to ensure that ssl is enabled. You'll also need the build dependencies of course; at least build-essential, libssl-dev and libldap2-dev Good luck, Brian. -- Posted via http://www.ruby-forum.com/.