twofactor_gauthenticator icon indicating copy to clipboard operation
twofactor_gauthenticator copied to clipboard

Roundcube 1.6 Support?

Open SKB-CGN opened this issue 2 years ago • 10 comments

Hi, I just upgraded to 1.6 but the plugin is not displayed anymore.

Is there a way to activate it again?

Thanks!

SKB-CGN avatar Oct 25 '22 05:10 SKB-CGN

I removed it and copied it again into the plugins folder. I only had problems to scan the QR-Code bit I added it manually and it works.

umsmin avatar Dec 23 '22 12:12 umsmin

I activated the plugin with roundcube 1.6.1 but it does not appear and it not working. try new installation of rc but also this plugin don't want to work. is there really a support for rc 1.6?

schickel007 avatar Apr 21 '23 10:04 schickel007

Yes, it works with RC 1.6 series. The issue is that the default config.inc.php comes with the author's email addresses in the $rcmail_config['users_allowed_2FA'] variable. Since our email address is different, the plugin isn't displayed inside RC.

To fix this, edit /plugins/twofactor_gauthenticator/config.inc.php and change this setting to: $rcmail_config['users_allowed_2FA'] = true;

gabrielt avatar Apr 23 '23 18:04 gabrielt

With this setting users_allowed_2FA=true plugin still not appear in the setting.

Somehow the plugin is also not listed as "installed" even it is listed in the plugin section in the main-config of roundcube:

// List of active plugins (in plugins/ directory)

$config['plugins'] = [ 'jqueryui', 'markasjunk', 'twofactor_gauthenticator', ];

image

No clue what's missing...

schickel007 avatar Apr 24 '23 07:04 schickel007

Your twofactor folder has the permissions chmod 775 and belongs to your www user?

If not, please reinstall the plugin.

Further, try to edit the file:

To fix this, edit /plugins/twofactor_gauthenticator/config.inc.php and change this setting to: $rcmail_config['users_allowed_2FA'] = true;

Set an array here, with the user email address. $rcmail_config['users_allowed_2FA'] = ['[email protected]', '[email protected]'];

SKB-CGN avatar Apr 24 '23 07:04 SKB-CGN

Test it in the past and now also - nothing changed. Also permissions and ownership from the plugin-directory is as requested. Also different variations of "users_allowed_2FA". I also try with fresh "installation" of roundcube.

schickel007 avatar Apr 24 '23 09:04 schickel007

Take a look at the Rouncube error log file, it might give you a clue there.

gabrielt avatar Apr 24 '23 10:04 gabrielt

i managed it out.... totally strange behavior.

my issue was, that the plugin didn't appear in the list even it's configured. Don't ask me why, but after restarting php8.1-fpm.service the plugin was listed and I'm able to configure 2fa.

schickel007 avatar Apr 24 '23 12:04 schickel007

Probably something cache-related.

gabrielt avatar Apr 24 '23 12:04 gabrielt

If this is fixed, close the issue perhaps?

ulab avatar Feb 09 '24 10:02 ulab

works for me using the simple boolean true $rcmail_config['users_allowed_2FA'] = true;

lpalgarvio avatar May 11 '24 04:05 lpalgarvio