Issue
You may encounter an error while logging in to PAM, even when the OTP is successfully generated through Google Authenticator or Microsoft Authenticator.
Error: “Invalid OTP”
Resolution
Step 1: Verify MFA Configuration
-
Navigate to Platform Configuration → Authentication → Multifactor Authentication.
-
Select Google Authenticator or Microsoft Authenticator.
-
Review the configured settings and ensure that the Tolerance Time is set to a minimum of 30 seconds.
Step 2: Check PAM Server Time
-
Check the current time on the PAM server, including seconds, in “HH:MM:SS” format.
Step 3: Check Authenticator Device Time
-
Check the current time, including seconds, on the device used to generate the OTP.
Step 4: Compare the Time Difference
-
Compare the time on the PAM server with the authenticator device. Ensure that the time difference is within the configured tolerance.
Step 5: Adjust the Tolerance Time
-
If the time difference exceeds 30 seconds, increase the Tolerance Time based on the observed difference.
(For example, you can configure the tolerance to 60, 80, or 90 seconds, as required.)
Step 6: Validate OTP Authentication
-
Log in to the Sectona PAM Console again using the generated OTP and verify that the OTP is accepted successfully.
Make sure that the PAM server and the authenticator device have synchronized time settings. Configure the Tolerance Time to accommodate the observed time difference and prevent OTP validation failures.