Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uL35U-00HIi6-QP for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2025 17:00:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uL35T-003yH8-GY for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2025 17:00:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uL35T-003yGu-8I for pgsql-bugs@lists.postgresql.org; Fri, 30 May 2025 17:00:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uL35Q-000uuH-1t for pgsql-bugs@lists.postgresql.org; Fri, 30 May 2025 17:00:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 54UGxwwV2356944; Fri, 30 May 2025 12:59:58 -0400 From: Tom Lane To: Chris Gooch cc: Jacob Champion , "pgsql-bugs@lists.postgresql.org" Subject: Re: [EXT] Re: GSS Auth issue when user member of lots of AD groups In-reply-to: References: <1529314.1747928806@sss.pgh.pa.us> <1536692.1747933034@sss.pgh.pa.us> <1647590.1747936713@sss.pgh.pa.us> <3060113.1748096813@sss.pgh.pa.us> <3125813.1748115425@sss.pgh.pa.us> <1350781.1748384129@sss.pgh.pa.us> <2089825.1748542158@sss.pgh.pa.us> <2093402.1748544111@sss.pgh.pa.us> Comments: In-reply-to Chris Gooch message dated "Fri, 30 May 2025 09:27:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2356942.1748624398.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 30 May 2025 12:59:58 -0400 Message-ID: <2356943.1748624398@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chris Gooch writes: > In that scenario the client did not get any GSSAPI specific errors and d= rops to prompt for password. The server however had this in the logs "over= size GSSAPI packet sent by the client (20131 > 16384)" Yeah, that's expected. By default, a GSSAPI-enabled libpq will try to open a GSSAPI connection first, but silently fall back to not-GSSAPI if the server rejects it --- there's not any close inquiry into why the server rejected it. Jacob Champion writes: > Okay, on closer review this LGTM. Pushed, thanks for reviewing. > I was trying to get src/test/kerberos to shove a bunch of > authorization data into its tickets, but I haven't figured out how > to get krb5kdc to do that yet, so Chris's tests are the best we have > at the moment. Eventually I'll get around to reading the ASN.1 so > that pg-pytest can test this case, but that's not a job for today. Sounds reasonable. I think Chris' testing is good enough for now. The one thing I was slightly concerned about was whether any data could remain in the buffers at the instant we downsize them, but that seems improbable (and it wouldn't depend on the ticket size anyway, I should think). regards, tom lane