Description |
This article describes the error 'NAS forces two-factor auth but user token not defined' and how to resolve it. |
Scope | FortiAuthenticator 6.x. |
Solution |
Under some circumstances, FortiAuthenticator may fail a user authentication and log the error in 'NAS forces two-factor auth but user token not defined'. This is visible under Logging -> Log Access -> Logs:
Log Details
And may also appear in RADIUS debug if debug is enabled:
2025-01-17T10:16:18.466558+01:00 fortiauth radiusd[21249]: (0) facauth: Updated auth log 'fortinet' for attempt from 10.191.19.149~10.191.31.254: Windows AD administrator authentication from 10.191.31.254 (mschap) with no token failed: NAS forces two-factor auth but user token not defined
Further information on collecting log messages and RADIUS debug may be found here.
The default radius policy Authentication factors, 'All configured password and OTP factors', works well for most use cases.
This is in some way dynamic and prompts the user to provide whatever authentication method applies to the respective user. The same Authentication factors also apply to SAML authentication.
This user, fortinet, is configured with a password only. Another user that has also OTP configured will be prompted by the same policy for the password and the token.
This error occurs if the option 'Mandatory password and OTP' is set and the user trying to authenticate has no token.
There are 2 solutions:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.