fix auth without ldap connection, remove deprecated get_context_instance