From: jfh Date: 2009-02-21T15:07:08+09:00 Subject: Re: ldap and ruby Adam Gardner wrote: > I can also say, I've used ruby-net-ldap and was very happy with it. Give > it a try! The downside is that it doesn't seem to work with 1.9. I couldn't get it to work at all even following up on some of the patches and bug reports on the RubyForge page. The good news is I created a patch for ruby-ldap-0.9.7 to get it to work with ruby 1.9. I added it to the SourceForge tracker here in case anyone's interested: https://sourceforge.net/tracker/index.php?func=detail&aid=2622809&group_id=66444&atid=514521 By the way, you can go a long way to porting a C extension to ruby 1.9 by just doing this: ruby -pi -e ' gsub(/RARRAY\s*\((\S+?)\)->len/) { "RARRAY_LEN(#{$1})" };\ gsub(/RARRAY\s*\((\S+?)\)->ptr/) { "RARRAY_PTR(#{$1})" };\ gsub(/RSTRING\s*\((\S+?)\)->len/) { "RSTRING_LEN(#{$1})" };\ gsub(/RSTRING\s*\((\S+?)\)->ptr/) { "RSTRING_PTR(#{$1})" }; ' file.c ---------------------------------------------------------------------- | Jim Hranicky, Security Engineer UF InfoSec Team | | E202 SSRB Phone (352) 392-2061 | | jfh@ufl.edu | ----------------------------------------------------------------------