[Bug 1269] PAM Callback returns garbage if user unknown or root with disabled login in ssh-config

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Dec 7 00:31:07 EST 2006


------- Comment #3 from openbsd at priv.de  2006-12-07 00:31 -------
Created an attachment (id=1219)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1219&action=view)
libnss module solving this problem

There is a hotfix for this problem, resolved via libnss: Just compile
this short libnss module via

  gcc -c -o passwd.o passwd.c
  gcc --shared -o passwd.so passwd.o

name the output file (here passwd.so) for example "permit" so the
libnss filename results in the filename "libnss_permit.so.2". Copy the
passwd.so with this filebname to /lib, and add in nsswitch.conf after
"compat" the name you did choose (in the example it is here it is

  passwd:         compat permit

If you now restart your sshd, SSH passes all informations, beside of a
deactivated root user, user to pam.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the openssh-bugs mailing list