Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Two Factor Authentication Invalid Code Error

Discussion in 'Security' started by Michael Smith, Feb 18, 2017.

  1. Michael Smith

    Michael Smith Registered

    Joined:
    Sep 10, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hey guys,

    Last week n a bit ive been having issues with the 2 factor on WHM.

    When i set the 2 factor up the code works. It will continue to work for a few hours then it will start saying invalid code. I then have to login to ssh and action

    whmapi1 twofactorauth_disable_policy

    login and set it up again.

    at first i thought it was system time thing however we have other software on the server using 2 factor auth that works fine. So tried a different device to generate the codes and the same thing happens.

    Is there any way i can diagnose this better ? a log that shows why it failed ??

    Thanks in advanced
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Try checking this one:

    /usr/local/cpanel/logs/secpol_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the version of cPanel installed on the system? Also, do you notice any output to /usr/local/cpanel/logs/error_log when this happens?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice