remove code for ldap because not working