Added ldap support