Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2019 03:53:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234793] Failed unknown for $USER in sshd logs even if I got authenticated
Message-ID:  <bug-234793-227-zM4NIIc1Ug@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234793-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234793-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234793

Henry Hu <henry.hu.sh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henry.hu.sh@gmail.com

--- Comment #23 from Henry Hu <henry.hu.sh@gmail.com> ---
This bug was introduced in https://reviews.freebsd.org/rS339216. In this
commit, a wrapper was added for login_getpwclass. The line in the dispatch
table says:
    {MONITOR_REQ_GETPWCLASS, MON_AUTH, mm_answer_login_getpwclass},

Because the flag is MON_AUTH, which includes MON_AUTHDECIDE, which means
#define MON_AUTHDECIDE  0x0008  /* Decides Authentication */
So the result of this wrapped call is recorded through auth_log() at line 3=
39
of monitor.c:
https://svnweb.freebsd.org/base/head/crypto/openssh/monitor.c?view=3Dmarkup=
#l343

mm_answer_login_getpwclass only retrieves some information from logincap, s=
o it
does not decide the authentication result, and it always returns 0. Thus, I
think that the flag is incorrectly set. I think that the correct value shou=
ld
be MON_ISAUTH.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234793-227-zM4NIIc1Ug>