]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't log normal login_getpwclass(3) result.
authorXin LI <delphij@FreeBSD.org>
Fri, 26 Jun 2020 04:46:45 +0000 (04:46 +0000)
committerXin LI <delphij@FreeBSD.org>
Fri, 26 Jun 2020 04:46:45 +0000 (04:46 +0000)
commit8d8b292321561e69cc691e05ae7e46a0f12769c1
tree41a2608adbb525ef86455ecd77b92e1612a5b189
parenta9813b6bb14d63e9393a336edca80ac48201c701
Don't log normal login_getpwclass(3) result.

The logging was introduced in r314527 but doesn't appear to be useful
for regular operation, and as the result, for users with no class set
(very common) the administrator would see a message like this in their
auth.log:

  sshd[44251]: user root login class [preauth]

(note that the class was "" because that's what's typically configured
for most users; we would get 'default' if lc->lc_class is chosen)

Remove this log as it can be annoying as the lookup happen before
authentication and repeats, and our code is not acting upon lc_class
or pw_class directly anyways.

Reviewed by: cem, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24997
crypto/openssh/auth2.c