From nobody Mon May 23 20:18:35 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 B36711B4D52F for ; Mon, 23 May 2022 20:18:35 +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 4L6TDW281wz4Vf3 for ; Mon, 23 May 2022 20:18:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 12545165E6 for ; Mon, 23 May 2022 20:18:35 +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 24NKIYLk023141 for ; Mon, 23 May 2022 20:18:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24NKIYi3023140 for bugs@FreeBSD.org; Mon, 23 May 2022 20:18:34 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 264188] kinit(1) ignore KRB5CCNAME environment if exist /tmp/krb5cc_%{uid} Date: Mon, 23 May 2022 20:18:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kod1976@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653337115; 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; bh=Im1Gp/72x2xpJ5jgPEg/0HncXOmKIhAnsP87PpBYAdk=; b=cTDE3ped0KJnr4EJeHCp1yUFo2+793Df+8m6stEpUU8UVukfQdCf1ZlJNEIzrQGrpcSJfy kEvyoFqWe95QkI5qWVEtMQB9goqq8Zzms1TJPMkzgsscBBPT9adRfQeQ/q6Vw2uyBlFxV8 1I7yMw/iiMmHP9hsRSwhLzBnu9+okfJPEPU8+OfwE/MgxDhHIkf4Q600ZXGpke84ctMGdW Wwv5WW5jxLP9mOcFsDFK7PaN+nsiZHERL+No3VeNSYorBTd++AT1+ixORGF7MMzq8A7R1p fChOfVMNlg8Mhl1fylZa8RTN4hWy2FJxAKNzN+ckygWQebzukYXafGPS+Waycg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653337115; a=rsa-sha256; cv=none; b=N4V2jD3q3sTpPXc5oP/Zs9F7oNLYvFPBWnc2awv+mfKhIimW5w2xVYK3Ly7jSwf9iZsYvC 0JRqoGhBsikGqlGOum7uxOcRrY3MSPDu4v3UmS2rNo29EYOIkYVVVmoEak3qdRNJnijf3b WHrLlFTlVt1gJINr5NsomhOnATg7NkhOEMX2xpHfjvauWvUD2geB5GM/qbGtVflfESbiAP 3zmogHLYmJwIxar2ALjqP8Eh6NUW2jDpXlaHSqEAn7XrZaN5hS06jfK6sH80qT4AcPua2E biMfxzbxy8M8g54qCJsOEMabfB5FErreIO5vjP8JBuBIuO0OFqK+FtruOP5juQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264188 Bug ID: 264188 Summary: kinit(1) ignore KRB5CCNAME environment if exist /tmp/krb5cc_%{uid} Product: Base System Version: 12.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kod1976@gmail.com Environment KRB5CCNAME specifies the default credentials cache according to manual page. But it is ignored if file /tmp/krb5cc_%{uid} exist and contain valid ticket (even expired one) for principal. For example: # printenv | grep KRB5CCNAME # kinit some_principal # ls -la /tmp/krb5cc_0 -rw------- 1 root wheel 2071 May 23 16:57 krb5cc_0 # setenv KRB5CCNAME /tmp/krb5cc_test # kinit some_principal # ls -la /tmp/krb5cc_test ls: /tmp/krb5cc_test: No such file or directory # ls -la /tmp/krb5cc_0 -rw------- 1 root wheel 2071 May 23 17:00 /tmp/krb5cc_0 # rm /tmp/krb5cc_0 # kinit some_principal # ls -la /tmp/krb5cc_test -rw------- 1 root wheel 2071 May 23 17:03 /tmp/krb5cc_test --=20 You are receiving this mail because: You are the assignee for the bug.=