Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afYta-00058t-Aj for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 20:15:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afYtZ-0008WE-Rm for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 20:15:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afYsE-0006x9-Tp for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 20:13:55 +0000 Received: from linode.thelabyrinth.net ([198.58.117.137] helo=mail.thelabyrinth.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afYsC-0006Ua-5h for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 20:13:53 +0000 Received: from desktop.home.thelabyrinth.net (unknown [98.204.177.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id D185712D13; Mon, 14 Mar 2016 20:13:50 +0000 (UTC) Subject: Re: [PATCH v6] GSSAPI encryption support To: Robbie Harwood , pgsql-hackers@postgresql.org References: <56E05575.9060200@pgmasters.net> Cc: Michael Paquier From: David Steele Message-ID: <56E71B7C.6050108@pgmasters.net> Date: Mon, 14 Mar 2016 16:13:48 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bWhKsP8XggpCvCadUsF4eJHLpdte6auxg" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bWhKsP8XggpCvCadUsF4eJHLpdte6auxg From: David Steele To: Robbie Harwood , pgsql-hackers@postgresql.org Cc: Michael Paquier Message-ID: <56E71B7C.6050108@pgmasters.net> Subject: Re: [HACKERS] [PATCH v6] GSSAPI encryption support References: <56E05575.9060200@pgmasters.net> In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 3/14/16 4:10 PM, Robbie Harwood wrote: > David Steele writes: >=20 >> Hi Robbie, >> >> On 3/8/16 5:44 PM, Robbie Harwood wrote: >>> Hello friends, >>> >>> Here's yet another version of GSSAPI encryption support. It's also >>> available for viewing on my github: >> >> The build went fine but when testing I was unable to logon at all. I'm >> using the same methodology as in >> http://www.postgresql.org/message-id/56BE0FF9.70302@pgmasters.net except >> that I'm running against 51c0f63 and using the v6 patch set. >> >> psql simply hangs and never returns. I have attached a pcap of the >> psql/postgres session generated with: >> >> tcpdump -i lo -nnvvXSs 1514 port 5432 -w gssapi.pcap >> >> If you would like me to capture more information please let me know >> specifically how you would like me to capture it. >=20 > Please disregard my other email. I think I've found the issue; will > post a new version in a moment. Strange timing since I was just testing this. Here's what I got: $ pg/bin/psql -h localhost -U vagrant@PGMASTERS.NET postgres conn->inStart =3D 179, conn->inEnd =3D 179, conn->inCursor =3D 179 psql (9.6devel) Type "help" for help. postgres=3D> This was after commenting out: // appendBinaryPQExpBuffer(&conn->gwritebuf, // conn->inBuffer + conn->inStart, // conn->inEnd - conn->inStart); // conn->inEnd =3D conn->inStart; The good news I can log on every time now! --=20 -David david@pgmasters.net --bWhKsP8XggpCvCadUsF4eJHLpdte6auxg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW5xt9AAoJEIA2uIJQ5SFA6IsQAInN1BJJ7Y4N90fTGErN6Hba 0Pnxdojg7FfvNmVfpHdhDSA9cN/mrcbkpbKVGzoqZ4ziTVNHyCPVEnbarF4B3Ht5 2bBi+fBMwN6wR7YdSSyqzcEjuSHNqEl+oyw9MovkBq9htYG0HJ0+xjOFKs4D+sv5 KbblXrNLvvn0mL59fBdu7ZeMoSQ3hY0OrN5F1uwb6Vv0bvJ2U1Mp6U0EinBT9OFn Bdeh6vvrJOixUUnpuXnFyGE8llZsKr2TTF6s7gAq7q9prQul9sGg/xot4L5BM+ie 2cZWYF0KpKmx9V8inn4ySuCjjcAwKR4sIWxF1/HzWNxaMXEOs5GQCPGLYtT8wndP 7h9zxuceBmhmsFCVlmnaQazpO1DqKDY3v5EAJx32EL7/GTb4BGX3oEkc8i/ZMx0d dilbyy6cY3FvU46kB4judEyFTtg3uWI1l23ibgtw8dYMA9taCtS0uX7nsD2DTpm9 OUnzq6lmBbBdVy6/VCaPc/WpuKQdE/gj8qvNZHRZbM7BZuP0lYuI7EWL7QVl/T4I Zxxf1n5IRifCjKo7KXequpQ3zP2kT/lsRi4+jxS/Z918D3/+zAikqWGfy0dMrq8R +/leVXQerhJMeJAL7XqfOrG36O+yLEPo3dCqynTJPYbIxyRX4srLntQJSanML/J5 cAMakveOmHfdVFXuYvac =nwAd -----END PGP SIGNATURE----- --bWhKsP8XggpCvCadUsF4eJHLpdte6auxg--