[Bug 3481] PAM_TEXT_INFO messages are shown twice if they are the last conversation
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Feb 16 03:30:58 AEDT 2023
https://bugzilla.mindrot.org/show_bug.cgi?id=3481
--- Comment #1 from Martin <bugs at mrvanes.com> ---
Created attachment 3677
--> https://bugzilla.mindrot.org/attachment.cgi?id=3677&action=edit
Minimal test case
Attached is a minimal test case that shows the observed behaviour in
all it's glory. It includes the tty_output() in the same we include it
in our module.
It was compiled on ubuntu 22.10 using:
$ gcc pam_test.c -shared -o pam_test.so -lpam
copied to /usr/local/lib/security
$ sudo cp pam_test.so /usr/local/lib/security/pam_test.so
activated as a pam module in /etc/pam.d/sshd just above common-account
...
auth required /usr/local/lib/security/pam_test.so
# Standard Un*x authorization.
@include common-account
tested using pamtester:
$ pamtester sshd martin authenticate
Password:
Info
pamtester: successfully authenticated
tested using sshd:
$ ssh localhost
(martin at localhost) Password:
Info
Info
Welcome to Ubuntu 22.10 (GNU/Linux 6.1.11 x86_64)
Which clearly shows the double output of the last (and only)
PAM_TEXT_INFO message.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list