Testing Ruby LDAP

October 6th, 2010

I'm interested in the possibility of creating LDIF files for use with TinyLDAP and CHIMAILMADMIN.

This tutorial looks helpful:

So far I haven't been able to use the to_ldif method.

I think I figured out how to use it.... but I'm getting a segmentation fault! Could it be a 1.9 incompatibility? Perhaps... now trying 1.8.

Nope, that doesn't like it either:

./ruby-ldap.rb:25: undefined method `to_ldif' for # (NoMethodError)
	from ./ruby-ldap.rb:17:in `search'
	from ./ruby-ldap.rb:17

Figured it out! Just needed to require 'ldap/ldif'. Silly me.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022