Bug 2064 - Enable logging of client_user at INFO priority rather than DEBUG2
Summary: Enable logging of client_user at INFO priority rather than DEBUG2
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.8p2
Hardware: All All
: P5 enhancement
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks: V_6_3
  Show dependency treegraph
 
Reported: 2013-01-25 15:11 AEDT by Eugene Pivovarov
Modified: 2021-04-23 15:03 AEST (History)
2 users (show)

See Also:


Attachments
Log key, client user and wire-specified client host for hostbased auth (4.41 KB, patch)
2013-06-05 11:44 AEST, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Pivovarov 2013-01-25 15:11:42 AEDT
One of the important features of hostbased authentication is that it controls access from the specified client users. When such control is desired, it is truly beneficial to supplement it with corresponding information in the log. In other words, sshd log should get a message that says which client user from which hostname and IP address logins as which local user. In v5.8p2 such a message only comes from auth_rhosts2_raw() in auth-rhosts.c and the message is at syslog priority DEBUG2. Thus, it is not possible to get details about client user without running sshd with log level as high as DEBUG2. It would be highly desirable if this message or a similar message reporting client_user had priority INFO.
Comment 1 Darren Tucker 2013-06-05 11:14:53 AEST
Damien, this might be doable with the recent auth_log changes?
Comment 2 Damien Miller 2013-06-05 11:44:29 AEST
Created attachment 2295 [details]
Log key, client user and wire-specified client host for hostbased auth

Yes, though we should log the key too. This patch extends the recent pubkey_auth_info() to allow logging of additional information besides the key, and uses it to log the hostbased client user and client host (as it appears in the userauth packet).
Comment 3 Damien Miller 2013-06-21 10:35:06 AEST
committed - this will be in openssh-6.3
Comment 4 Damien Miller 2021-04-23 15:03:34 AEST
closing resolved bugs as of 8.6p1 release