GP - Failed to parse server response during authentication where response was MFA challenge
I have OpenConnect version v8.20-1 When I'm trying to connect vpn I got this error:
sudo openconnect --protocol=gp server
POST https://server/global-protect/prelogin.esp?tmp=tmp&clientVer=4100&clientos=Linux
Attempting to connect to server 195.229.xxx.xxx:443
Connected to 195.229.xxx.xxx:443
SSL negotiation with server
Connected to HTTPS on server with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA256)-(AES-256-GCM)
Got HTTP response: HTTP/1.1 200 OK
Date: Tue, 14 Mar 2023 14:12:49 GMT
Content-Type: application/xml; charset=UTF-8
Content-Length: 475
Connection: keep-alive
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000;
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; img-src * data:; style-src 'self' 'unsafe-inline';
HTTP body length: (475)
Prelogin form _login: "Username: " user(TEXT)=(null), "Password: " passwd(PASSWORD)
Enter login credentials
Username: User
Password:
POST https://server/global-protect/getconfig.esp
Got HTTP response: HTTP/1.1 200 OK
Date: Tue, 14 Mar 2023 14:14:00 GMT
Content-Type: application/xml; charset=UTF-8
Content-Length: 35373
Connection: keep-alive
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000;
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; img-src * data:; style-src 'self' 'unsafe-inline';
HTTP body length: (35373)
Portal set HIP report interval to 60 minutes).
1 gateway servers available:
External-gateway (server)
Please select GlobalProtect gateway.
GATEWAY: [External-gateway]:External-gateway
POST https://server/ssl-vpn/login.esp
Got HTTP response: HTTP/1.1 200 OK
Date: Tue, 14 Mar 2023 14:14:02 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 185
Connection: keep-alive
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000;
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; img-src * data:; style-src 'self' 'unsafe-inline';
HTTP body length: (185)
Failed to parse server response
Response was: <html>
<head></head>
<body>
var respStatus = "Challenge";
var respMsg = "Enter Your Microsoft verification code";
thisForm.inputStr.value = "63d77256000014e0";
</body>
</html>
Failed to complete authentication