add support for ldap

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>