NetXMS Support Forum

English Support => General Support => Topic started by: Ruklaw on August 04, 2025, 03:25:27 PM

Title: Two Factor Authentication Fail
Post by: Ruklaw on August 04, 2025, 03:25:27 PM
Hi,

I've been using NetXMS happily for a few years, I enabled two factor authentication with TOTP on my account and have been logging on with it for a year or two.

When I tried to logon with either the regular or legacy client this morning I get an error message after putting in my username and password;
"Preparation phase of two-factor authentication failed"

and of course couldn't log on.

Happily in this case I was able to resolve the issue by getting my technician to login and reset my TOTP - but supposing his TOTP had also been corrupted, is there some command line approach to reset the TOTP?

Or is it just a question of following the lockout procedure, then once back in resetting TOTP?

1) stop netxms server
2) run
nxdbmgr reset-system-account
3) login specifying user system and password netxms
4) enable admin back
5) disable system user


Title: Re: Two Factor Authentication Fail
Post by: Alex Kirhenshtein on August 04, 2025, 03:31:54 PM
Yes, you can either request another admin user to reset it for you, or unlock and login as system.

But regarding TOTP - check server's time, maybe NTP stopped working and there is a drift.