dropbear: Reset the pam counters after succefully logging in#50
dropbear: Reset the pam counters after succefully logging in#50splashwarrior wants to merge 1 commit into
Conversation
Per the pam manual, the user app that is using the pam module, is the one that should reset the pam counters(tally/tally2). This fixes cases where dropbear was used to ssh on pam enabled systems.
|
I'm not too familiar with PAM credentials, but the docs at http://www.linux-pam.org/Linux-PAM-html/adg-interface-by-app-expected.html section 3.1.8.1 suggest it should be called after the setuid()/setgid() in svr-chansession. Does that work for your case? What problem does it fix (what're tally/tally2)? |
|
Apologize for the non-descriptive commit message. I will change that. |
|
Thanks for this change. I think this patch is close to what I need. I am using PAM with the pam_tally2 module and with expired passwords (https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/2019q4/002174.html) and I am seeing a small bug: When an SSH client connects to the Dropbear server with a correct username and password, the I think the flow in svr-authpam.c could be like this (in addition to your patch): However, I am also not familiar with PAM practices or with dropbear flows. |
Per the pam manual, the user app that is using the pam module,
is the one that should reset the pam counters(tally/tally2).
This fixes cases where dropbear was used to ssh on pam enabled
systems.