|Posted on Wednesday, March 06, 2013 - 3:33 pm: |
Trying to get Webmo 13.0.012e installed on a Centos 6.3 system.
When setting up PAM authentication and trying to login via the web browser, I get an error:
Can't locate auto/Authen/PAM/authenticat.al in @INC (@INC contains: lib/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at password_external.cgi line 89
I'm presuming that I'm missing a Perl module, but I'm not able to identify which one.
Post Number: 340
|Posted on Wednesday, March 06, 2013 - 3:36 pm: |
See https://www.webmo.net/support/enterprise.html under the "External Authentication" section. It details the required Perl libraries, and how to install them.
|Posted on Friday, March 08, 2013 - 2:56 pm: |
Thank you for the reply. Unfortunately it is not quite that easy. Our local OS drives are maintained via "yum". If I simply do "perl -MCPAN -e 'install Authen::Simple::PAM'", for example, that changes the yum installed packages and those changes could simply be wiped out the next time "yum" processes an update.
What I need to find is an RPM file that is compatible with Centos 6.3 for the perl-Authen-Simple-PAM package (or create it myself), or better yet, modify the Webmo code to work with the perl-Authen-PAM which is already installed (and I think has superceded the "Simple" PAM package).
Do you have any idea what might be needed to change the code to work with the existing perl-Authen-PAM package? At first glance it looks like only the password_external.cgi file would need to be modified.
|Posted on Friday, March 08, 2013 - 3:52 pm: |
Ah, figured out a simpler option. I just put the PAM.pm file in the Webmo cgi-bin directory, and edited the password_external.cgi to look there instead of Authen::Simple::PAM.
Post Number: 342
|Posted on Friday, March 08, 2013 - 4:23 pm: |
Great. FYI, I use Authen::Simple since there are, in principle, lots of other options OTHER than PAM.