|
Lines 311-318
Link Here
|
| 311 |
* sshd doesn't set the tty until too late in the auth process and |
311 |
* sshd doesn't set the tty until too late in the auth process and |
| 312 |
* may not even set one (for tty-less connections) |
312 |
* may not even set one (for tty-less connections) |
| 313 |
*/ |
313 |
*/ |
| 314 |
debug("PAM: setting PAM_TTY to \"ssh\""); |
314 |
debug("PAM: setting PAM_TTY to \"/dev/console\""); |
| 315 |
sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, "ssh"); |
315 |
sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, "/dev/console"); |
| 316 |
if (sshpam_err != PAM_SUCCESS) { |
316 |
if (sshpam_err != PAM_SUCCESS) { |
| 317 |
pam_end(sshpam_handle, sshpam_err); |
317 |
pam_end(sshpam_handle, sshpam_err); |
| 318 |
sshpam_handle = NULL; |
318 |
sshpam_handle = NULL; |