Description: This article describes how to enable EAP-TTLS as an authentication method for IKEv2 IPsec VPN connections using Active Directory LDAP in VPN-only (unlicensed) FortiClient.
Scope: FortiOS 7.4.13; FortiClient VPN-only for Windows (example: 7.4.3.1790); IKEv2 remote access; Active Directory LDAP/LDAPS.
Issue and root cause
An IKEv2 VPN connection successfully authenticated with a local FortiGate account but failed against Active Directory LDAP. Local-account success indicates that the basic VPN setup can work, but does not prove that LDAP authentication is configured correctly.
The client may default to EAP-MSCHAPv2, which is unsuitable for this direct LDAP scenario. A compatible FortiClient can instead use EAP-TTLS/PAP. Verify the exact FortiClient build and TLS/certificate requirements before production rollout.
Step 1 — Configure the IPsec VPN profile
Create or edit an IPsec VPN connection. Select IKE Version 2, Pre-shared key, Prompt on login for EAP, Mode Config, and NAT Traversal as appropriate. Enter the organization’s actual gateway; the example hostname is vpn.example.com below.
Step 2 — Match Phase 1 and Phase 2
The example uses AES128/SHA256 and AES256/SHA256 proposals, DH group 14, Phase 1 lifetime 86400 seconds, and Phase 2 lifetime 43200 seconds with PFS group 14. Match the FortiGate settings; these values are an example, not universal requirements.
Step 3 — Back up and edit the client configuration
For VPN-only FortiClient releases offering Settings > System > Backup, export the configuration. In this example the readable XML backup is saved as C:\Temp\forticlient.xml. Some GUI versions default to .conf; use the backup format supported by the installed client and confirm the file contains readable XML before editing. Renaming a non-XML backup does not convert it into XML.
Alternative method — FCConfig.exe export
For releases supporting the command-line utility, the export syntax may be:
cd "C:\Program Files\Fortinet\FortiClient"
FCConfig.exe -f "C:\Temp\forticlient.xml" -o export -p "BACKUP_PASSWORD"
2. Edit the exported XML. Open the readable backup with Notepad++ or a comparable editor. Locate the configured tunnel in the following hierarchy:
<vpn>
<ipsecvpn>
<connections>
<connection>
...
<ike_settings>
3. Add the EAP method. Within the matching <ike_settings> section, add <eap_method>2</eap_method> while retaining the remaining exported settings:
<ike_settings>
<version>2</version>
<implied_SPDO>0</implied_SPDO>
<implied_SPDO_timeout>0</implied_SPDO_timeout>
<xauth_timeout>0</xauth_timeout>
<prompt_certificate>0</prompt_certificate>
<description />
<server>vpn.example.com</server>
<authentication_method>2</authentication_method>
<authentication_method>Preshared Key</authentication_method>
<eap_method>2</eap_method>
<auth_data>
<!-- Preserve the original exported auth_data and remaining settings. -->
Note: The XML example is taken from an existing FortiClient VPN configuration. To enable EAP-TTLS/PAP, locate the <ike_settings> section and add or update <eap_method>2</eap_method>. Leave the remaining configuration unchanged and restore the modified XML using FortiClient.
EAP method values: 1 = EAP-MSCHAPv2; 2 = EAP-TTLS/PAP.
4. Save the modified XML. Best practice is to save a separate file, such as C:\Temp\forticlient-eap-ttls.xml, and retain the original backup. For this walkthrough, the existing file C:\Temp\forticlient.xml was overwritten to demonstrate the process. Keep an untouched backup in production.
Step 4 — Restore the modified configuration
Import the modified XML through FortiClient Settings > System > Restore. FortiClient may need to be unlocked. In this example, select C:\Temp\forticlient.xml.
Alternative method — FCConfig.exe import
On compatible releases, the command-line import syntax may be:
cd "C:\Program Files\Fortinet\FortiClient"
FCConfig.exe -f "C:\Temp\forticlient.xml" -o import -p "BACKUP_PASSWORD"
Step 5 — Verify EAP-TTLS in Windows Registry
On the test workstation, inspect the relevant VPN profile under:
HKEY_LOCAL_MACHINE\SOFTWARE\Fortinet\FortiClient\IPSec\Tunnels\vpn.example.com\P1
Confirm eap_method is a REG_DWORD with value 0x00000002 (2). This verifies the client setting, not the success of LDAP authentication.
Step 6 — Verify FortiGate and test Active Directory
Confirm the existing IKEv2 Phase 1 has EAP enabled and references the intended LDAP-backed user group:
config vpn ipsec phase1-interface
edit "RA-IKEV2-LDAP"
set ike-version 2
set eap enable
set eap-identity send-request
set authusrgrp "RA-VPN-AD-USERS"
next
end
Replace example names with the real configuration. Test LDAP credentials and inspect tunnel status:
diagnose test authserver ldap AD-LDAPS testuser password
diagnose vpn ike gateway list
diagnose vpn tunnel list
Then connect with an authorized AD test account and confirm successful authentication, assigned client IP, and permitted internal access. A successful LDAP test result was not supplied with the screenshots and should not be claimed solely from the registry setting.
Important notes
EAP method not saved in configuration backup: Fortinet documents that FortiClient v7.4 does not save the EAP method in its configuration backup. Restoring an unmodified backup on another FortiClient may not enable EAP-TTLS; edit and verify each deployment.
Verifying the EAP method: In HKEY_LOCAL_MACHINE\SOFTWARE\Fortinet\FortiClient\IPSec\Tunnels\<TunnelName>\P1, value 1 indicates EAP-MSCHAPv2 and value 2 indicates EAP-TTLS.
Security: Protect exported configuration files, pre-shared keys, and LDAP credentials; verify TLS certificate trust.
Conclusion
For a compatible standalone FortiClient, adding <eap_method>2</eap_method> to the IKEv2 profile can resolve an EAP-method mismatch in direct LDAP authentication. Verify the registry setting and complete a real Active Directory VPN connection test before wider deployment.


