updated with ldap auth working