]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream commit
authorjsing@openbsd.org <jsing@openbsd.org>
Mon, 15 Jun 2015 18:44:22 +0000 (18:44 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 17 Jun 2015 12:12:05 +0000 (22:12 +1000)
commit596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403
tree83d8c183a65709172408da4b4473fe90ab9efca3
parentaff3e94c0d75d0d0fa84ea392b50ab04f8c57905
upstream commit

If AuthorizedPrincipalsCommand is specified, however
 AuthorizedPrincipalsFile is not (or is set to "none"), authentication will
 potentially fail due to key_cert_check_authority() failing to locate a
 principal that matches the username, even though an authorized principal has
 already been matched in the output of the subprocess. Fix this by using the
 same logic to determine if pw->pw_name should be passed, as is used to
 determine if a authorized principal must be matched earlier on.

ok djm@

Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d
auth2-pubkey.c