From nobody Mon Jul 22 14:04:00 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 4WSMTF0Wj3z5R038 for ; Mon, 22 Jul 2024 14:04:01 +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 4WSMTD3nsPz52dN for ; Mon, 22 Jul 2024 14:04:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721657040; a=rsa-sha256; cv=none; b=MSc41M9rhw0IY9MFk6OTZaVvW2YQg/mYll3rCTLvlMrDRcINQ7lnlofevBRChkq1ZNDoid jpWFJsX4qhh4PSdfiV7eWLznQpZ4T4WEuwfYg6yTIe8xfdKzl5OlZpSJLoVHnT6Lp8Xd2j HgT/LwDNOD6BPeMeSR+8an6PzG9g//0ZTZ+yUEYVJvPBsLpAVsSiqS2O5mYpk43NZJ4Uc+ owf4oZdsBjO+rrURlTElo4eiogVwPXW17bPVcftblE5VcbowC3QR37htaS1zGHqbJhKBjt UDd0P1hMg91ZAn3k9/CRvQhe27r+HthSP+1z/FAt8wS8vXNhh1AxsvBKq9JzAw== 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=1721657040; 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=BeGpts0Wp3tLdFXD31OGPwBHTic06edmC2zeBDFY/zA=; b=EufbxvWJ1tZWJuCUSd1pFGByHVKDg0s0NOGZh7ofdDErY/eFVBPonKMwqS0AOqH7vzQx// jw/TUcV/apqgKeuxYmPbmeHOhODzz+P0DPY9pGu3tiSpn1E7hXEiBKuAOMuaxFYljSXSsu 3nfD6lfStuFdjhVWEisGYfs4qejVlLjzPRDxiQuO5jFMRAgJ9SXLhkmZ9xc+GPEmjX2JLH fzOwnoY9im9HbqEx0/5NRejALD2qjsVgTgPBPvQ7Dsq8SNTnGHJeW38HmSfmb8cBV+jDcq vDvbjOH8JL49GNgWDcuoPZlVs47zHva0JoDcUDQAaq/h9I63hesbcVtpt7XQTg== 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 4WSMTD35jPznLP for ; Mon, 22 Jul 2024 14:04:00 +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 46ME40sc052270 for ; Mon, 22 Jul 2024 14:04:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46ME40XO052269 for bugs@FreeBSD.org; Mon, 22 Jul 2024 14:04:00 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: Mon, 22 Jul 2024 14:04:00 +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: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: anderson.soares@embrapa.br 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280407 Bug ID: 280407 Summary: Authentication fails when using pam_krb5.so Product: Base System Version: 13.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: anderson.soares@embrapa.br Since I've upgraded one of our server from FreeBSD 13.2 to 13.3, our users = are getting authentication errors when they try to use our web proxy service, w= hich authenticate users against pam_krb5 module. Using the pamtester utility and enabling pam_krb5 debug I could confirm that authentication is failing every time pam_krb5 is called. I also noticed the following messages in debug log: Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_user(): entering Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): entering: PAM_USER Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): returning PAM_SUCC= ESS Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_user(): returning PAM_SUCC= ESS Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Got user: anderson Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): entering: PAM_RUSER Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): returning PAM_SUCC= ESS Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Got ruser: (null) Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): entering: PAM_SERV= ICE Jul 22 10:09:54 vm3 pamtester[27135]: in pam_get_item(): returning PAM_SUCC= ESS Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Got service: squid Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Context initialised Jul 22 10:09:54 vm3 pamtester[27135]: in openpam_get_option(): entering: 'debug' Jul 22 10:09:54 vm3 pamtester[27135]: in openpam_get_option(): returning '' Jul 22 10:09:54 vm3 pam_krb5[27135]: in openpam_get_option(): entering: 'allow_kdc_spoof' Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Done cleanu= p4 Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Done cleanu= p5 Jul 22 10:09:54 vm3 pamtester[27135]: in openpam_get_option(): entering: 'no_warn' Jul 22 10:09:54 vm3 pamtester[27135]: in openpam_get_option(): returning '' Jul 22 10:09:54 vm3 pamtester[27135]: in pam_sm_authenticate(): Done cleanu= p6 Jul 22 10:09:54 vm3 pamtester[27135]: in openpam_dispatch(): /usr/lib/pam_krb5.so.6: pam_sm_authenticate(): Error in service module Jul 22 10:09:54 vm3 pam_krb5[27135]: in openpam_get_option(): returning NULL The problem seems to be related to pam_krb5 since kerberos authentication u= sing the kinit utility works fine. Supposing that the problem could be caused by some error in the service configuration file, I've tried different pam serv= ice configurations but anyone solved the problem. Further tests have showed that even the default system service configuration fails when the pam_krb5 line = is uncommented. This is the pam service file I'm using: auth required pam_krb5.so debug no_warn try_first_pass no_ccache no_user_check account required pam_permit.so session required pam_lastlog.so no_fail password required pam_deny.so As an additional information, I've also tested the same configuration on the 14.0 and 14.1 releases and the same error occurs in both versions. Best regards, Anderson --=20 You are receiving this mail because: You are the assignee for the bug.=