Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'less_confusing_output_when_authentication_fails' into '…
Browse files Browse the repository at this point in the history
…master'

less confusing output when authentication fails

See merge request openconnect/openconnect!146
  • Loading branch information
dlenski committed Nov 17, 2020
2 parents 02a26f6 + ce8c696 commit 8c212a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth-globalprotect.c
Expand Up @@ -124,7 +124,8 @@ static int parse_prelogin_xml(struct openconnect_info *vpninfo, xmlNode *xml_nod
saml_method);
vpn_progress(vpninfo, PRG_ERR,
_("When SAML authentication is complete, specify destination form field by appending :field_name to login URL.\n"));
result = -EINVAL;
/* XX: EINVAL will lead to "failure to parse response", with unnecessary/confusing extra logging output */
result = -EPERM;
goto out;
} else
vpn_progress(vpninfo, PRG_DEBUG, _("Destination form field %s was specified; assuming SAML %s authentication is complete.\n"),
Expand Down
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -1893,7 +1893,7 @@ int main(int argc, char **argv)
unlink(vpninfo->csd_scriptname);
vpninfo->csd_scriptname = NULL;
}
fprintf(stderr, _("Failed to obtain WebVPN cookie\n"));
fprintf(stderr, _("Failed to complete authentication\n"));
exit(1);
}

Expand Down

0 comments on commit 8c212a0

Please sign in to comment.