I am attempting to enable two factor authentication using Google Authenticator as the provider.
I've installed the Authen::OATH perl module (perl-Authen-OATH-1.0.0-8.3.noarch.rpm) which when viewing exisiting modules in Webmin it shows in the list (see screen)
When I go to enable two-factor Auth by selecting (google auth) from the Authenticator dropdown menu (GoogleAuth screen) it fails to complete saying I need to have Authen:Oath installed (see error screen). Which as you can see from scree AuthenOath it is on the system already. Is there something I am missing or is this a bug?
If you SSH into the system and run
perl -e 'use Authen::OATH', what errror message do you get?Can't locate Digest/HMAC.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/Authen/OATH.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.10.0/Authen/OATH.pm line 16.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Last edit: tire88744 2016-07-22
Odd that
Digest::HMACdidn't get installed as a dependency of theperl-Authen-OATHRPM.Try running
yum install perl-Digest-HMACThanks! I've installed perl-Digest_HMAC as you suggested. I again run perl -e 'use Authen::OATH' and get the following new output.
Can't locate Moose.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/Authen/OATH.pm line 18.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.10.0/Authen/OATH.pm line 18.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Wow, that module sure has a lot of dependencies! Maybe you also need to run
yum install perl-Moose