| Summary: | Export client port to PAM | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Sebastian Roland <seroland86> | ||||
| Component: | PAM support | Assignee: | Damien Miller <djm> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | enhancement | CC: | djm, dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 7.5p1 | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| See Also: | https://bugzilla.mindrot.org/show_bug.cgi?id=2503 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 2915 | ||||||
| Attachments: |
|
||||||
|
Description
Sebastian Roland
2017-07-11 01:47:25 AEST
Created attachment 3213 [details]
set SSH_CONNECTION in PAM environment
Unfortunately it can't be done using pam_set_item() as there is no equivalent key to PAM_RHOST for the port number. That's a pity as that would be the most natural way to supply this information.
So this sets SSH_CONNECTION in the PAM environment, identically to what should be later set in the user enviornment. This contains the full 4-tuple describing the connection.
This has been committed and will be in the openssh-8.0 release closing resolved bugs as of 8.6p1 release |