Skip to main content
RBA
Staff
Staff
September 4, 2025

Troubleshooting Tip: SSL VPN connection fails (sslvpn_login_permission_denied) with error 'Failed group matching'

  • September 4, 2025
  • 0 replies
  • 2934 views
Description This article describes how to troubleshoot the 'Failed group matching' error while an SSL VPN user authenticates with the LDAP server.
Scope FortiGate
Solution
The SSL VPN connection would fail with the error 'sslvpn_login_permission_denied'. FNBAMD debugs on the FortiGate, as below, would show authentication failing with the error 'Failed group matching'.
 
diagnose debug disable
diagnose debug reset
diagnose debug console timestamp enable
diagnose debug application fnbamd -1
diagnose debug enable
 
Failure log snippet from fnbamd debugs:
 
[984] __ldap_next_state-State: Primary Group Query -> Done
[1982] ldap_copy_grp_list-copied CN=FW-AD-GRP,OU=SECURITY,OU=CORPORATE,DC=LABLOCAL,DC=CO,DC=IN
[1982] ldap_copy_grp_list-copied CN=FW-NON-AD-GRP,OU=SECURITY,OU=CORPORATE,DC=LABLOCAL,DC=CO,DC=IN
[1982] ldap_copy_grp_list-copied CN=Domain Users,CN=Users,DC=LABLOCAL,DC=CO,DC=IN
[627] fnbam_user_auth_group_match-req id: 6748847559694, server: LAB-LDAP, local auth: 0, dn match: 1
[581] __group_match-Check if LAB-LDAP is a group member
[581] __group_match-Check if LAB-LDAP is a group member
[208] find_matched_usr_grps-Failed group matching
 
Verify the groups configured on the FortiGate for VPN access
 
config authentication-rule
    edit 1
        set groups "SSLVPN-FW-AD-GRP"
        set portal "SSLVPN-FW-AD-GRP"
    next
    edit 2
        set groups "SSLVPN-FW-NON-AD-GRP"
        set portal "SSLVPN-FW-NON-AD-GRP"
    next
end
 
config user group
    edit "SSLVPN-FW-AD-GRP"
        set member "LAB-LDAP"
            config match
                edit 1
                    set server-name "LAB-LDAP"
                    set group-name "CN=FW-AD-GRP,OU=SECURITY,OU=FINANCE,DC=LABLOCAL,DC=CO,DC=IN"
                next
            end
    next
end
 
The group mismatch is expected in this scenario, as the OU returned by the LDAP server and the OU configured on FortiGate do not match.
  • Group Returned from LDAP: CN=FW-AD-GRP,OU=SECURITY,OU=CORPORATE,DC=LABLOCAL,DC=CO,DC=IN
  • Group configured on FortiGate: CN=FW-AD-GRP,OU=SECURITY,OU=FINANCE,DC=LABLOCAL,DC=CO,DC=IN
 
Based on the groups returned in the debug, configuration can be modified on the FortiGate end, which will resolve the issue.

Note:
  • For SSL VPN, user groups must be configured both under the SSL VPN settings and referenced in the firewall policy.
  • For Dial-up IPsec VPN, user groups should be configured either under the IPsec Phase 1 settings or in the firewall policy, but not in both.
  • The set username-case-sensitivity CLI command is used to disable case sensitivity, as remote LDAP and RADIUS usernames are case-sensitive by default. This can lead to authentication failures if there is a mismatch in letter casing.
  • The SSL VPN tunnel has been disabled starting on FortiOS v7.4 for specific models: Technical Tip: SSL VPN support on FortiGate models. This is a security measure taken by Fortinet, and it is replaced by IPsec VPN tunnels, which offer stronger cryptography and encryption options.
  • This guide provides detailed information regarding the migration process: Migration from SSL VPN tunnel mode to IPsec VPN.