ldap: Add more ldap support