Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amB4E-0005px-3X for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2016 02:13:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1amB4D-0004BL-If for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2016 02:13:37 +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 1amB2t-0002hh-CN for pgsql-hackers@postgresql.org; Sat, 02 Apr 2016 02:12:15 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amB2r-0000G6-1q for pgsql-hackers@postgresql.org; Sat, 02 Apr 2016 02:12:14 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2BD775F799; Fri, 1 Apr 2016 22:12:12 -0400 (EDT) Date: Fri, 1 Apr 2016 22:12:12 -0400 From: Stephen Frost To: Noah Misch Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Refer to a TOKEN_USER payload as a "token user, " not as a "user Message-ID: <20160402021211.GH10850@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BtQ+uzrQQ7HCCYtg" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 22:06:15 up 38 days, 22:59, 10 users, load average: 0.08, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.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 --BtQ+uzrQQ7HCCYtg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Noah Misch (noah@leadboat.com) wrote: > Refer to a TOKEN_USER payload as a "token user," not as a "user token". >=20 > This corrects messages for can't-happen errors. The corresponding "user > token" appears in the HANDLE argument of GetTokenInformation(). I'm not at all convinced that this is an improvement. I understand that it's a "can't happen" case, but we're calling out to a OS function and as much as things "can't happen" they do, in fact, occationally happen, and there's no such thing as a "token user" concept. There's an enum, one value of which is "TokenUser" and that's what we're asking the OS to provide us info about, but I'd argue that if we're going to refer to the textual enum representation then we should spell it just exactly as the enum has it. If we don't want to use "TokenUser" then I'd suggest that "user token" is a more accurate term to use, as we had before this change. There is no such thing as a "token user", as far as I'm aware, in GSSAPI, SSPI, or general access token lingo. Thanks! Stephen --BtQ+uzrQQ7HCCYtg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJW/yp7AAoJEO1sijiDR2RVxhsQAJbGr8ZXgE6ZrSUdpPn+lFH+ 097ggI7W21tQZGeI4k0S1Ho6YhAYI4xJn1nqd5jQhrw5jUMf4wFmX2G94yczD1NE AMSeOqFhefK0VGYCkpqL16wDfHK6aeOpqq4OFh7qBCyfunvXVX6/dxrYsACLD4Lh bCSNyrwxy5frJqJLV3k/EjA25BL4B0VezccYvpQRCqG0SVUiLfK/JJ/aJUUcFc+m fc8+o9nbQUrg9qmWNap6C4jaCqqcKpLL7uVwPZBCqvdsE8v8at+MLdnfABQKebzB cH1+1YbqUThnwzT+4arlBjj+nR+wFObKqhOxgO/KF4Sc6vejN8BGMKi6kljXuIo3 kdShLDHK+7GEfh4G926tVxQYVEfjVtdGOQ+ViQ9ViooBhKDCFNM72kNElxWe5FVg /gePcYa0XVnBEI0K/WSwc5XOlXfN8vjN11rR+oQOu3zWZXMwWKxIIVoMOYMocRyl xUDwgmPslE7VLl8c5xWOSmy5QQHvz0oh1+9gIyXE05DgVVtYBhPLEVHlm1HOvlPn 1r9XTLVicwgMJK11COucAvxz6OUkgvjHERA0CO4IoNpXAe405MKQXbWs46SuZGoB 2dkpPS4l6y/hSs1yNsu+dZdTOY68Xi6UQA2fqlrDDgBREv3SoZrnImdyVzkLtCAA IUZloSIj8eHb6DVM4Zah =ZVQf -----END PGP SIGNATURE----- --BtQ+uzrQQ7HCCYtg--