Hi, I got similar problems when I tried to setup a xml-rpc server in
ruby, since there no real examples howto create a server provided in its
rdocs. I found out that there some provided in the package itself.

I found ruby-ldap examples here:
http://ruby-ldap.cvs.sourceforge.net/ruby-ldap/ruby-ldap/example/

Also consider the rdoc to understand them.

Sincerely
Florian