]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't log normal login_getpwclass(3) result.
authordelphij <delphij@FreeBSD.org>
Fri, 26 Jun 2020 04:46:45 +0000 (04:46 +0000)
committerdelphij <delphij@FreeBSD.org>
Fri, 26 Jun 2020 04:46:45 +0000 (04:46 +0000)
commit4691b632e850d618e2eb45bed02c554a6e442f85
tree41a2608adbb525ef86455ecd77b92e1612a5b189
parentf973ca3bfbffbf87616cf87e65cd294aeea1a03a
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