Let PAM know about accepted pubkey?
Damien Miller
djm at mindrot.org
Fri Feb 19 10:27:08 AEDT 2016
On Thu, 18 Feb 2016, Johan Ström wrote:
> Hi,
>
> first of: my familiarity with OpenSSH/Pam code-base is very limited.. Please
> excuse me if some of this does not make any sense or seems stupid!
>
> I'm investigating if it is possible for a PAM module to find out which public
> key was accepted (when 'AuthenticationMethods publickey,keyboard-interactive'
> is used). From my digging in the source, it seems it is currently not.
>
> Would it be possible to provide this information? Maybe using do_pam_putenv()?
> Would there be any security implications of doing this?
There is an open bug about this. I do hope to make the public keys used during
authentication available in the environment (and to PAM), but it won't happen
until 7.3 at the earliest.
-d
More information about the openssh-unix-dev
mailing list