Operating System - HP-UX
1833758 Members
2699 Online
110063 Solutions
New Discussion

Question about PAM library (/usr/lib/libpam.1), Problem with PAM module ......

 
Jin Zhou
Occasional Contributor

Question about PAM library (/usr/lib/libpam.1), Problem with PAM module ......

Hi:

I'm trying to port Krb5 PAM module from Solaris to HPUX11. After having changed the source codes a little bit to fix the compilation warning/errors, the codes compiled and I got the shared library (namely the PAM module, "pam_krb5.1") very easily. (This is no surprise, since this PAM module is already working on Solaris, and PAM becomes a industrial standards now)

But somehow when I configured the /etc/pam.conf file to use this PAM module, the routine "load_modules()" in /usr/lib/libpam.1 fails to load "pam_krb.1", and the error message from syslog.log is simply as below:

PAM: load_modules: can not open module /usr/lib/security/pam_krb5.1

I have checked the "pam_krb5.1" with "ldd -r pam_krb5.1", and all the shared libraries used by "pam_krb5.1' can be found.

To go even farther, I have made another version of "pam_krb5.1" which doesn't depends on any shared library except /usr/lib/libpam.1.

But problem still remains the same.

So does HP's PAM implementation do things differently? --- something like HP PAM doesn't support "pam_putenv()" function. I logged a call to HP tech-support asking for more detail info about developing PAM module for HPUX11, but so far there is no useful response. :(

So anybody know what is the coding rule for writing a PAM module for HPUX11?

Anybody know what are the requirements for a PAM module so it can be loaded by /usr/lib/libpam.1 ?

HP should have really published some docs and guidelines as to how to develop PAM module on HPUX11.

Thanks

Jin