Fix segfault when using hdb registered plugin.
Fix compiling hdb ldap as a module
Simple hdb plugin test