From nobody Mon Dec 19 18:49:27 2022 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 4NbTJl3lWdz1Gjhf for ; Mon, 19 Dec 2022 18:49:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbTJl2Ydyz429v for ; Mon, 19 Dec 2022 18:49:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671475767; 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=O4BkzvuBnLQ+QKxns6NA9lHkEqqeg/s2/whLZDA2trY=; b=PUyHuAS6gZDLq3UZW7/vVai/E2yMoDk1Y56MUh/bDyyxs1drvonu8MO+01EL4mQUx4GLNK WBR4jdYFbnmmn1R3w/39eoV88a3LCR42V1byOVftn4a8icxMBYLDe2LgTLMbiBBD1FBX0n DgENpCdgVGGhOZ1gHA71VNnIqZZg8FH5gG7kWBSoCgBtWvpcEE+Kc7eFeMhkNt4YUndzO7 LiKl+n16dmQ3a+PRQ7g8PVXc2Mfp8WcepgwyMUczFhn02w/8LFZZQOdFbip6As8Q+4XPAx BFQoVsi6sAukcoQgQeLaglQ8F0vvs9ngZ0Uk/2FsK5+q3LHWr5V0Zw/KF1gFUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671475767; a=rsa-sha256; cv=none; b=Cb0Lc35sodS0zVbSCnNKXQuCZu3Al0Vy5tH+VkJ6u5HqXbI2Qcg6Opx1yK2qqWjylO3847 3giZGUEcztmGP3Pvz7PhU9kPk6TrGTkp9BPKV93L0BUHw3aqmaIDDxXYyi99oI2Eqnf52M 7mqlrtOQi6vNJLeaviJANfmU12WXM8htOVZyNKKEnpwbRnGrKsf4cxBy2i/ur0Wfadx0tM i+YrP6Loqmq+1HftZTsfPPGHzXpUZocMsFWddmyeT/bcV9R56gGr18+ibSAEVsts7ZhKVk 3VcCMiB0fl/Rvp3tE6hZhn1oDwedw9d9+sMTw/7MTC0lfFXuK+8KZeaH6wDdxQ== 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 4NbTJl1Xm0z159l for ; Mon, 19 Dec 2022 18:49: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 2BJInRoW089615 for ; Mon, 19 Dec 2022 18:49:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BJInRRV089614 for bugs@FreeBSD.org; Mon, 19 Dec 2022 18:49: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 268186] Kerberos authentication fails with a Linux/FreeIPA KDC Date: Mon, 19 Dec 2022 18:49: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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: amendlik@gmail.com X-Bugzilla-Status: New 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268186 --- Comment #27 from amendlik@gmail.com --- (In reply to Cy Schubert from comment #26) To keep things simple, I have disabled PAM and all authentication methods except GSSAPI. PubkeyAuthentication no ChallengeResponseAuthentication no PasswordAuthentication no KerberosAuthentication no GSSAPIAuthentication yes UsePAM no This configuration works fine with an encryption type-18 ticket. If I try it with a type-20 ticket, it fails with the error: "encryption type 20 not supported". This behavior is what I would expect, because OpenSSH in the ba= se system is linked with Heimdal 1.5.2 which does not support encryption type = 20. Not only was RFC8009, which defined type-20, written after 1.5.2 was releas= ed, but we can look at the FreeBSD source code and see that there is no code to support encryption type-20 (https://cgit.freebsd.org/src/tree/crypto/heimdal/lib/krb5/crypto-aes.c). I don't understand how you are getting it to work in your environment. I see you saying the tickets must be formatted differently by different KDC's, but that explanation does not make sense to me. How can a type-20 ticket create= d by your KDC can be accepted by an OpenSSH server that DOES NOT SUPPORT type-20 tickets, regardless of its format? That seems like the critical question we need to address. There has to be s= ome detail of your environment I am missing. Can you confirm that the OpenSSH server you are testing with is FreeBSD with OpenSSH from the base system? --=20 You are receiving this mail because: You are the assignee for the bug.=