Issue Setting Up Authenticator in Usermin - Webmin Working Fine - HTTP/1.0 500 Perl execution failed Server: MiniServ/2.102 Date: Thu, 10 Oct 2024 20:29:54 GMT Content-type: text/html; Charset=utf-8 Connection: close

SYSTEM INFORMATION
OS type and version Debian Linux 12 - Linux 6.1.0-26-amd64 on x86_64
Virtualmin version 7.20.2

Dear Virtualmin Support Team,

I’m writing to seek assistance with an issue I’ve encountered while setting up the authenticator in Usermin. While everything works smoothly in Webmin, the same setup in Usermin leads to errors. I’ve tried to troubleshoot using suggestions from the following discussions:

  1. HTTP/1.0 500 Perl execution failed
  2. Webmin GitHub Issue #1507

Unfortunately, none of the fixes provided in these discussions seem to resolve the issue for me.

To give a bit more background, I’m coming from Yunohost and am relatively new to Virtualmin. I’ve been impressed with the flexibility and features Virtualmin offers, particularly around user management and backups, which were limited in Yunohost. Still, setting up Usermin authenticator has proven to be a challenge.

Everything in my environment is up to date, as this is a fresh install, but this specific issue persists. I’d appreciate any guidance or insights into how I can resolve the problem.

Sign up for two-factor authentication with provider Google Authenticator ..

.. complete. Your ID with this provider is*BEEEEEP*.
HTTP/1.0 500 Perl execution failed Server: MiniServ/2.102 Date: Thu, 10 Oct 2024 20:29:54 GMT Content-type: text/html; Charset=utf-8 Connection: close

ERROR — PERL EXECUTION FAILED

Undefined subroutine &twofactor::can_generate_qr called at twofactor-funcs-lib.pl line 235.

Note: Partly of this error message was another language so had to translate it

Thank you for your time and support!

Best regards,
WoozyFace

It should work ‘out of the box’.

Set up a domain in Virtualmin, add a user, open Usermin. I don’t know that I’ve ever tried it for a Webmin user.

That’s what I try to do here, which results in

Is two factor authentication available in Usermin?

Yes?

That is interesting - because I cannot find it! anywhere! - is this something new or OS specific? I have 2FA active on a server.

try this location

1 Like

Tx, but it did not seem to change anything :slight_smile: I can log in to Usermin (just as before) with no prompt for 2FA and nothing added to the Usermin Menu.

Yes, I did restart Usermin after selecting “Google Authenticator” as the provider. also logged in using Roundcube as normal - no 2FA and no error messages either :man_shrugging:

I don’t know why but also would have expected such a critical security change to have been notified to all users?

I seem to remember a while back that google was removed/replaced in webmin for 2fa perhaps there is an over sight as far as usermin is concerned idk

It is still there as (the only) listed option

I’m losing track here, is it a bug that I am able to activate that part on usermin or what?!

Keep in mind I’m new to virtualmin so I don’t have any memory or whatever of what could and should have been…

Sorry for adding that … but it maybe an oversight when google 2fa was removed from webmin login, have you tried to add 2fa to webmin also ? Tbf I don’t use 2fa in any place that I don’t have to

So, are you basically saying there’s no need to use it there? But what if I just want to provide an extra layer of security?

I’m not saying that I just find it a pain, sometimes I dont have my phone with me or to hand and can not receive the pesky code but if you want to use 2fa, use it

1 Like

LOL, me too! But I don’t even have to worry about it anymore. Whether you’re on MacOS, Linux, or yes, even where the Windblows (Windows), there are tools that can handle 2FA automatically for you. For example, password managers like Bitwarden or 1Password can store 2FA codes and autofill them, or you can use browser extensions that automate the process. This way, you get the extra security without the hassle of always needing your phone to receive the code. Makes life a lot easier!

I’m having the exact same issue, on Ubuntu 24.04. Any news? It would be really nice to be able to add 2FA to Usermin users.