From 4d992ff08da8f452346e41d7b7bd4342efae383c Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sun, 28 Mar 2021 19:00:52 -0700 Subject: [PATCH] Juniper: bugfix handling of loginForm.VerificationCode Need to whitelist this form by 'auth_id' in oncp_can_gen_tokencode. Missed in f582b233afc688cd7090aa01ee1a0af61597bef1. Signed-off-by: Daniel Lenski --- auth-juniper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth-juniper.c b/auth-juniper.c index 4c6f4ad0..0f180904 100644 --- a/auth-juniper.c +++ b/auth-juniper.c @@ -75,7 +75,8 @@ static int oncp_can_gen_tokencode(struct openconnect_info *vpninfo, if (strcmp(form->auth_id, "frmDefender") && strcmp(form->auth_id, "frmNextToken") && - strcmp(form->auth_id, "frmTotpToken")) + strcmp(form->auth_id, "frmTotpToken") && + strcmp(form->auth_id, "loginForm")) return -EINVAL; okay: -- 2.49.0