Authen::Pam error in miniserv.error log.

7 posts / 0 new
Last post
#1 Sat, 02/17/2007 - 03:01
JohnFord

Authen::Pam error in miniserv.error log.

I get a: Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC

error as the next line after every: miniserv.pl started

To refresh your memory about my system setup. Fedora 6 with a fresh base install then updating everything with yum and then an install.sh with virtualmin.

As mentioned before in other posts... I played around with the GPL version before going pro - I manually installed the GPL. I manually had already installed webmin too. (again, this was about three weeks ago; but, for past few days things have been as I stated in the previous paragraph.)

I would get the Authen::PAM error back then.

It took a bunch of work to get either Authen module installed into perl. Webmin could not do it by itself. I had to spend a hour or two with the CPAN shell and still didn't get the libwrap one to install.

I just tried to get them installed on this new installation and am remembering a few things that went on.

Clicking on Perl Modules in the webmin "Others" category showed that there were three perl modules that webmin suggested installing.

IO::Pty - it installed OK. (but only after installing it all by itself because it was the last of the three in the list to be installed so webmin would never get to it because the other two would prevent things from getting that far.) Anyway... it installed by itself fine.

Authen::PAM - it took some work - the error that comes up is no header file pam_appl.h was found. In the README it said to install the pam_devel pak and doing that fixed the install choke. So, installing the fedora6 pam-devel[[oper]] package provided the missing header file and the install worked.

Authen::Libwrap - I can't/haven't been able to get installed. There are a lot of tests that fail and it says it will not install without force. The first error that occurs that I'm thinking is causing the rest of everything to go awry is:

Error: Function definition too short '/ * EOF * /' in Libwrap.xs, line 32

I just can't get it Authen::Libwrap going so far. Any ideas? Why is webmin suggesting it be installed?

The other two I report so maybe it'll help you with someone else as I appears the errors occured because of the default makeup of my operating system. (Tending to make something like this slow to come to your attention).

This Libwrap.xs file does in fact end at line 32 with the EOF. It begin with a five include statement and I found all five files. I believe they would be in the perl @INC path.

Sat, 02/17/2007 - 07:59
Blueforce

Hi John,

Here are links to similar questions. I don't know if they are any help to you though, or maybe you already seen them, anyway... here they are:
http://www.virtualmin.com/forums/message-view?message_id=57668
http://www.virtualmin.com/forums/message-view?message_id=57396

Regards,
Leif

Mon, 05/30/2011 - 05:02
mcongosto

I am having this same problem, both link mentioned above are dead.

please fix

thanks.

Mon, 05/30/2011 - 08:58 (Reply to #3)
andreychek

Authen::PAM messages are just notices -- they don't imply a problem, as Virtualmin will use /etc/passwd and /etc/shadow for authentication rather than PAM.

-Eric

Thu, 08/16/2012 - 12:56
DaveOverton

Just wanted to add something to this old dead thread.

On Centos 6.3, brand new fresh install, to get the "suggested perl" modules installed (Authen stuff) I needed to install the following using yum:

yum install perl-Test-Base
yum install perl-YAML
yum install perl-Test-Exception
yum install perl-Test-Taint
yum install gcc
yum install make
yum install pam-devel

Then the script would run and complete

Just wanted to add this list someplace where I could find it again :)

Thu, 10/11/2012 - 13:59
WillKeeler

I also encountered the install error with the Authen::libwrap perl module on my Fedora 17 machines. It is important to me that my hosts.allow and hosts.deny files are integrated into webmin's IP Access Control, and when I attempted to "let webmin install" said perl module I received the exact same error as described by OP.

I attempted Dave's yum install suggestions and installed the perl-Test-Base, perl-Test-Exception, and perl-Test-Taint, however these did not work for me. I already had the other 4 rpms on my system so I removed the -Test- rpms to get back to my control environment.

I next ran 'yum search wrapper' and focused my attention on the tcp_wrapper rpms. After a quick 'yum install tcp_wrappers*' I discovered that I had already installed tcp_wrappers and tcp_wrappers-libs, BUT NOT tcp_wrappers-devel.

'yum install tcp_wrappers_devel' corrected the issue on my machines and Webmin was able to install the Authen::libwrap perl module by itself just fine.

I hope this helps...

Thu, 12/13/2012 - 05:12
MetZ80

Regarding the perl-authen messages in webmin log on centos: Add epel repository: http://www.thegeekstuff.com/2012/06/enable-epel-repository/

Install

yum install pam-devel yum install perl-Authen-PAM

restart webmin, messages should be gone =)