From nobody Fri Jul 26 20:40:27 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WW04r2sRkz5RK1D for ; Fri, 26 Jul 2024 20:40:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WW04q5PM3z4fSd for ; Fri, 26 Jul 2024 20:40:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722026427; a=rsa-sha256; cv=none; b=a00oRNEw6WzN+QTfRrIwL/f3AdS2gAJvlOFGOwn8XNwk93JDfzRgOj0lOd8t+jdUdni36f YSOeL61lSbBD/H1aChQR/HckyGOtpS13IGF3XTO0CwWctbvFGIK5NYBs9vRPtCDkUUEyc/ PSF16B69N+EZsdnnES8Ros8DxO2TtO0rENUuK8Jizh0F9tPxCKGqVldakyiddLAHk3Zn1G 0IydjNZZ8hFQ3iMhEk2nG+v+Vih41xtSeZhfhFqjXZLH71uJs26opEVZeG0hYZzyXm2/IU x3/A2PNilUpzOZ0+0cTtA+D3IxBhvrCu58UesFBBrTnBKFpxOvB6CWT/8uVs8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722026427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wc67Zk3kHdXq7DPLfxPkIR/q+l6F0yiUfJe9xaDytxs=; b=Y9pf2iynVP7gUQbiso/KDqApcCpXV08tgvzLCe7vAqEhdWRJ6ne39VI0efS4kkjFjULfmW jBdZ+LGHS9WZK1IYY66dlpC540r/rWWyWMHmEksTUWaeFTXaEIg5D4dQzMoM21K9tvI1WY seDU/crlfk0Nv4Xp3t+F6dyVhGO8sDBYNaMqsf8o0mfq5ufg57AEKvJbe7Vc/D/2Lm4dx7 B7RU2Lb94tAYRMp+Rvz/fDmpLJpP2SD2PfZ0nxJSvpNSki6LRRUVBHMvAvTO05KXWFUW9D 5eUcOkfj5XRwCcD7Cr9LDKbhGMYBZDNz5ov/QYTJvcIoEgKPI7ZazhHPYf8FaA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WW04q51L8zdND for ; Fri, 26 Jul 2024 20:40:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46QKeRGr026844 for ; Fri, 26 Jul 2024 20:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QKeRHL026843 for bugs@FreeBSD.org; Fri, 26 Jul 2024 20:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280407] Authentication fails when using pam_krb5.so Date: Fri, 26 Jul 2024 20:40:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280407 --- Comment #5 from Dag-Erling Sm=C3=B8rgrav --- First, =E2=80=9Crequired=E2=80=9D vs =E2=80=9Csufficient=E2=80=9D is a red = herring. The module is returning an error.=20=20 Second, it isn't true that the only change between 13.2 and 13.3 is 27968aa02206. Here is the complete list: https://cgit.freebsd.org/src/commit/?id=3D6322a6c9daaa https://cgit.freebsd.org/src/commit/?id=3Dd295e418ae7e https://cgit.freebsd.org/src/commit/?id=3D3d497e17ebd3 https://cgit.freebsd.org/src/commit/?id=3D27968aa02206 We can see from the log that pam_sm_authenticate() is querying the allow_kdc_spoof option. This tells us that it failed to authenticate the K= DC.=20 Since the allow_kdc_spoof option is not set, it therefore refuses to authenticate the user.=20=20 This check was added by the first commit in the list above, and amended by = the second. Anderson, you need to either add the allow_kdc_spoof option to your PAM pol= icy (see the link below for documentation) or ensure that the endpoint has a ke= ytab with the KDC's key in it. https://man.freebsd.org/cgi/man.cgi?query=3Dpam_krb5&manpath=3DFreeBSD+13.3= -RELEASE --=20 You are receiving this mail because: You are the assignee for the bug.=