Skip to main content
Rajan_kohli
Staff
Staff
March 3, 2025

Technical Tip: SAML SSL VPN login page failing to load

  • March 3, 2025
  • 0 replies
  • 5684 views
Description This article describes how to fix the issue where the SAML login page fails to load, and SAML debugging on FortiGate displays the error message 'Failed to send SAML request'.
Scope FortiGate, SAML.
Solution

To check this error message, take SAML debugs as shown below:

 

diagnose debug reset

diagnose vpn ssl debug-filter src-addr4 x.x.x.x  <----- x.x.x.x will be user the public IP.

diagnose debug application sslvpn -1
diagnose debug application eap_proxy -1

diagnose debug application samld -1

diagnose debug enable

 

To stop the debugs:

 

diagnose debug application sslvpn 0

diagnose debug application samld 0
diagnose debug application eap_proxy 0

diagnose debug disable

diagnose debug reset

 

The user attempts to log in via SSL VPN using FortiClient or web mode and verifies if the debug logs match the output shown below.

 

2025-01-30 14:22:38 [257:root:1c7]saml login 455 idp entity: http://www.okta.com/exkjl88mpt1HtmMn7697
2025-01-30 14:22:38 [257:root:1c7]fsv_saml_enter:290 Failed to send SAML request.
2025-01-30 14:22:38 [257:root:1c7]sslConnGotoNextState:324 error (last state: 1, closeOp: 0)
2025-01-30 14:22:38 [257:root:1c7]Destroy sconn 0x7f80111000, connSize=0. (root)
2025-01-30 14:22:38 [257:root:1c7]SSL state:warning close notify (24.60.124.125)

 

To resolve this error, it is necessary to check if the correct SP certificate is used in the IDP configuration or to disable the Service Provider certificate in the SAML configuration.

 

In GUI:

 

saml.png

 

In CLI:

 

config user saml
    edit "okta-idp"
    unset cert

end

 

Related articles:

Troubleshooting Tip: Error 'The identifier of a provider is unknown to #LassoServer' for SAML login

Troubleshooting Tip: Fix SAML 'access denied' error caused by failure to create SP

Technical Tip: FortiGate SAML authentication resource list

Troubleshooting Tip: FortiClient SAML authentication when SSL VPN web mode is disabled globally

Troubleshooting Tip: How to troubleshoot the error 'do_http_validate:440 method (POST) on uri ... not allowed' when connecting to SSL VPN using SAML credentials

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.