removed LDAP code as not yet working