alele has asked for the wisdom of the Perl Monks concerning the following question:

Hi Folks,

When I try to authenticate user using Authen::PAM http://search.cpan.org/dist/Authen-PAM/ (version 0.17) following error is displayed in /var/log/secure file. Linux version is CentOS 5.4. Is Authen::PAM compatible with current versions of Linux PAM or are any changes required

Jun 13 16:22:33 localhost concso-sshd4534: PAM unable to resolve symbol: pam_sm_authenticate
Jun 13 16:22:33 localhost concso-sshd4534: PAM unable to resolve symbol: pam_sm_setcred

Any insights will be appreciated

Thanks Ajay

Replies are listed 'Best First'.
Re: Authen::PAM error
by Anonymous Monk on Jun 14, 2011 at 04:16 UTC
      Thanks for your reply
      Tried your suggestions, but problem is still there
      Any further insights on why the problem could be happening are appreciated
      Please let me know if more information from my setup is required. Basically requirement is that user logging-in through SSH should be authenticated by my code/script

      Thanks --Ajay

        I showed you how to pinpoint the problem and how to fix it.

        If my directions did not work for you, you need to show exactly what you did, and what you saw (copy paste from the terminal).

        export LD_LIBRARY_PATH=.... only works for the current user; If you were using apache and edited ld.so.conf, you might need to restart apache...