I had to create an LDAP search input plugin for my personal needs (in order to monitor changes of a group). I share it there in case it can help somebody.
You just have to add this line to logstash.gemspec:
[Edit: assigned values directy as an array]
[Edit2: base64-encoded non-printable strings]