| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have followed a couple suggestions and found out that the problem might not be with the openssh package directly because: 1) the Makefile is correctly created, specifically PAM is detected and put into the LIBPAM variable in the Makefile. 2) when the actual sshd binary is compiled I see the -lpam on the final line for linking (but is not actually linked according to ldd) Does this suggest a broken gcc or a broken ld? This type of problem is getting near the upper boundary of my problem solving skills, but a few pointers on where I should go from here would be great. Again, only the PAM libraries are the specific ones affected by this problem, the other dynamic libraries linking into sshd are just fine. I have also tried re-installing the PAM libraries and other PAM-enabled applications just work fine. Thien ----- Original Message ----- From: "Thien Vu" <thien_vu@hotmail.com> To: <linuxmanagers@linuxmanagers.org> Sent: Monday, October 21, 2002 7:43 PM Subject: Problems linking sshd to PAM or shadow libraries > Hi, > > I am having a wierd problem where I cannot compile OpenSSH with support for > PAM or shadow passwords. I have other programs that have linked to PAM just > fine (shadow, fcron, etc.). I have PAM and shadow passwords installed and > have enabled md5 passwords. OpenSSH is the only program that I am having > troubles with. I am using the standard 'configure, make, make install' but > when I run an 'ldd sshd' the libraries are not linked. I have tried the > following configure commands: > > 1) ./configure \ > --prefix=/usr \ > --sysconfdir=/etc/ssh \ > --libexecdir=/usr/sbin \ > --with-pam \ > --without-shadow \ > --without-md5-passwords > 2) ./configure \ > --prefix=/usr \ > --sysconfdir=/etc/ssh \ > --libexecdir=/usr/sbin \ > --without-pam \ > --with-shadow \ > --with-md5-passwords > 3) LIBS="-lpam" ./configure .... (from #1) > 4) LIBS="-lshadow" ./configure ..... (from #2) > > The 'make && make install' steps complete correctly, but when I try to ssh > into my machine, it always rejects my password. It doesn't matter if I have > PAM or shadow enabled. The one thing to note in the /var/log/messages I get > errors saying the my /lib/security/pam_(nologin, warn, etc) modules are > flawed, but I have also re-installed PAM successfully. I then tried to > reinstall OpenSSH, but it still fails to link to libpam. > > ---- /var/log/messages ---- > Oct 15 13:08:38 lisa sshd[2031]: PAM unable to > dlopen(/lib/security/pam_nologin.so) > Oct 15 13:08:38 lisa sshd[2031]: PAM [dlerror: /lib/security/pam_nologin.so: > undefined symbol: pam_get_user] > Oct 15 13:08:38 lisa sshd[2031]: PAM adding faulty module: > /lib/security/pam_nologin.so > Oct 15 13:08:38 lisa sshd[2031]: PAM unable to > dlopen(/lib/security/pam_env.so) > Oct 15 13:08:38 lisa sshd[2031]: PAM [dlerror: /lib/security/pam_env.so: > undefined symbol: pam_putenv] > Oct 15 13:08:38 lisa sshd[2031]: PAM adding faulty module: > /lib/security/pam_env.so > Oct 15 13:08:38 lisa sshd[2031]: PAM unable to > dlopen(/lib/security/pam_unix.so) > Oct 15 13:08:38 lisa sshd[2031]: PAM [dlerror: /lib/security/pam_unix.so: > undefined symbol: pam_get_user] > .... > --- end ---- > > Some other info: Gcc-3.1.1, glibc-2.2.5 (patched), PAM 0.76, shadow 4.0.3, > OpenSSH 3.5p1 (but it doesn't matter which version, it still fails to link > with 3.4p1) > > Thanks for any help > > Thien > _______________________________________________ > LinuxManagers mailing list - http://www.linuxmanagers.org > submissions: LinuxManagers@linuxmanagers.org > subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers _______________________________________________ LinuxManagers mailing list - http://www.linuxmanagers.org submissions: LinuxManagers@linuxmanagers.org subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
[Home] [Kernel List] [Linux SCSI] [Video 4 Linux] [Linux Admin] [Yosemite News] [Motherboards]