[api] fix loading of ruby ldap module