Results 1 to 3 of 3
Hi,
I developed a program which use PAM API for authentication. The program runs well in RHEL5.x and SLES10.x. However when I try it in SUSE 10.X/9.x, it failed at ...
- 09-15-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 2
PAM fail to work due to failing to load /lib64/security/pam_unix2.so
Hi,
I developed a program which use PAM API for authentication. The program runs well in RHEL5.x and SLES10.x. However when I try it in SUSE 10.X/9.x, it failed at pam_authenticate(). The error code is PAM_MODULE_UNKNOWN (2
. I also find following error messages in /var/log/messages
: PAM unable to dlopen(/lib64/security/pam_unix2.so)
: PAM [error: /lib64/security/pam_unix2.so: undefined symbol: pam_syslog]
: PAM adding faulty module: /lib64/security/pam_unix2.so
Then, I check the /lib64/security/pam_unix2.so and find there are unresolved symbols.
:/etc/security # ldd -r /lib64/security/pam_unix2.so
libnsl.so.1 => /lib64/libnsl.so.1 (0x00002baa626b4000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002baa627ca000)
libxcrypt.so.1 => /lib64/libxcrypt.so.1 (0x00002baa628ce000)
libc.so.6 => /lib64/libc.so.6 (0x00002baa62a09000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
undefined symbol: pam_syslog (/lib64/security/pam_unix2.so)
undefined symbol: pam_get_item (/lib64/security/pam_unix2.so)
undefined symbol: pam_vprompt (/lib64/security/pam_unix2.so)
undefined symbol: pam_set_data (/lib64/security/pam_unix2.so)
undefined symbol: pam_putenv (/lib64/security/pam_unix2.so)
undefined symbol: pam_set_item (/lib64/security/pam_unix2.so)
undefined symbol: pam_get_data (/lib64/security/pam_unix2.so)
undefined symbol: pam_get_user (/lib64/security/pam_unix2.so)
undefined symbol: pam_prompt (/lib64/security/pam_unix2.so)
Those symbols should be defined in /lib64/libpam.so.
However I can ssh to the machine successfully, and I am sure sshd uses pam and pam_unix2.so for authentication.
Does anyone know the root cause and solution? Besides the PAM packages I installed are
pam-32bit-0.99.3.0-29.4
pam-modules-10-2.2
yast2-pam-2.13.3-1.3
pam-0.99.3.0-29.4
pam-modules-32bit-10-2.2
Thanks a lot,
Yong
- 09-15-2009 #2
Did you recompile with the newer headers?? Be sure you have the development version installed and compile against that.
- 10-28-2009 #3Just Joined!
- Join Date
- Sep 2009
- Posts
- 2
Sorry for so late. The problem I met actually is same as the issue mentioned in SAS Support "Usage Note 37180". I do not have right to post URLs yet, so please just google "Usage Note 37180" will get the details. The problem has been resolved by not loading pam_unix2.so in my program.
Thanks a lot,
Yong


Reply With Quote