Add support for ldap authentication.