| Solution | Prerequisite: - A FortiWeb admin account with remote RADIUS authentication.
- A RADIUS account user with a group attribute.
Issue reproduction: The users account created in the RADIUS server may be assigned with a group attribute, and it may cause issues with the FortiWeb RADIUS account login if the group attribute was not configured correctly in the FortiWeb RADIUS admin group configuration. The issue can be reproduced with the following steps: - Add the RADIUS account in FortiAuthenticator with the group assignment. The user group is added to the Fortinet’s group attribute.
- The RADIUS account user is assigned to multiple groups. Each of the groups is added with the group attribute. The RADIUS user 'fwb-admin01' is assigned to two groups and has two group attributes: 'Web_Security' and 'Firewall Admin'.
- Given that the remote Radius authentication server has been configured in the FortiWeb, create the Admin Group and assign the admin RADIUS account to the Admin Group. In the example, only one group name will be added to the Admin User Group.
- Log into the FortiWeb SSH/CLI shell and run the GUI admin login debug commands.
diagnose debug admin-https access-log enable diagnose debug enable - Test the RADIUS account admin login in the FortiWeb GUI admin access. Insert the auth token if the 2FA token is enabled for the RADIUS account user.

- The GUI admin login will fail with the account login redirected back to the GUI login page. Notice that the URL contains the parameter 'err_token=1'.
- The debug output shows the account login returned the error 'Auth for token return is -1'. A successful login should return the message of the RADIUS group match.
Resolution: - The RADIUS admin group in the FortiWeb must be added with all of the group name attributes that are assigned in the RADIUS server. In the FortiWeb, navigate to the admin group page and edit the specific admin group. Insert all the group names into the group.
- Group name attributes are separated with a comma ',' as the delimiter.
 - Test the RADIUS account user login again in the FortiWeb GUI login page.

- The login should be successful and directed into the FortiWeb dashboard.
- The debug output shows the message 'Auth for token return is 0' and there will be group matched of the account group attribute.
Related documents: |