Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikw98-0007ik-Ku for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Dec 2019 20:23:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikw97-000675-A8 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Dec 2019 20:23:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikw97-00066y-1R for pgsql-hackers@lists.postgresql.org; Fri, 27 Dec 2019 20:23:41 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ikw94-00030l-EY for pgsql-hackers@lists.postgresql.org; Fri, 27 Dec 2019 20:23:40 +0000 Received: by mail-pj1-x1044.google.com with SMTP id n96so5167857pjc.3 for ; Fri, 27 Dec 2019 12:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=1xO5cm+2bXdi5xbKcsJAj5iJqEiCAOEvOYPakIfr3lk=; b=RePn9bvivJRYU5HgMfT6PIK9GQ3kK57k00GinlZt0QTmflmkuTNsxvqT+XIedJnJrj vvZM0rMcxM9Fi6hY1QA9HDJ3HQwkjM3FS6l184Rly1NbORz3A1mnGqsr5hbLIWlg7kjA V+jy+vM73oTlpF2BKjIEkoTNescX2fEQ/cJ4XJ9TVPIrtWjEPftQSc4LUWReEObRb2Rf Dl2eMVXZNuq5mMgogTG+cPUZzdAAa0TMQv3UXjYQbfcbd1kHB5S0cMoBJ1gZdABOuoAj ulJN7szO9LO85ZYCa9/zYo80uC+u+UDfXOQO7YB3/PlnKwJRmBPy3qIC7Z5I19OgDX5N +3vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=1xO5cm+2bXdi5xbKcsJAj5iJqEiCAOEvOYPakIfr3lk=; b=t3mryaOn6kt8XCjessFbT+6VXGZ9do+9adqNKQKoJepYM6aBm5oYiCyy+c15TqnSDy QFWMyrWkOURaZPlvxgLJ4x+ohS2MP1Ok3lyJGGBuaIitvLzydOcCfI8R7iMhUjW63vEZ +EkDR6aC7ZlBOnJL2bIwYWdDqiJ6qTnb8Ys/7t9/nnI4MTkUeZhlEp0t8Ni3wRn+h/BS eoSoZr+rh0wEIqoRqX8ATtU6cuwqlt7pw2oM65RAgI38t/RaD3efBqqCYNjP4CVGBvbG PZ1uFq5LXtQO7lUwuGzWMs0+cNZFT6f9cKteCqr3+EIiLMzJw1i/xzwW5FUImgTzSalS regg== X-Gm-Message-State: APjAAAU/aRU8Xzal+x3AudLipJYkJY6dC359h3n1HTbq6xn36tszSgUy acNZQSll+Ml2XYubywzijbyigpRqbkYpoCxVBi1mY9Xyy4ZquBC/t2HcGwUp8vPTzbyIEiOODHl GatpdIYZxEzAw8zdBmBCBALQ9kftnERqdTOSCzzDlMttoDfS5J6+MWb7HORPaLhSDQJMEVf3Afd u+fTouvA8vUjAQzra2 X-Google-Smtp-Source: APXvYqz57k/OtKbit+YEiteQNy/9G+i+BR0VSvf10W/naGyUPKgrkamWdN786+JXcxMuUSlnUO51rg== X-Received: by 2002:a17:902:b614:: with SMTP id b20mr53539864pls.20.1577478215672; Fri, 27 Dec 2019 12:23:35 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id a18sm6566132pjq.30.2019.12.27.12.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 12:23:35 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 85DD93008FE; Fri, 27 Dec 2019 17:23:32 -0300 (-03) Date: Fri, 27 Dec 2019 17:23:32 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Pg Hackers , Robbie Harwood Subject: Re: weird libpq GSSAPI comment Message-ID: <20191227202332.GA20278@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191227194821.GV3195@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Dec-27, Stephen Frost wrote: > Maybe part of the confusion here is that there's two different things- a > credential cache, and then a credential *handle*. Calling > gss_acquire_cred() will, if a credential *cache* exists, return to us a > credential *handle* (in the form of conn->gcred) that we then pass to > gss_init_sec_context(). Hmm, ok, yeah I certainly didn't understand that -- I was thinking that the call was creating the credential cache itself, not a *handle* to access it (I suppose that terminology must be clear to somebody familiar with GSS). > Hopefully that helps. I'm certainly happy to work with you to reword > the comment, of course, but let's make sure there's agreement and > understanding of what the code does first. How about this? * If GSSAPI is enabled and we can reach a credential cache, * set up a handle for it; if it's operating, just send a * GSS startup message, instead of the SSL negotiation and * regular startup message below. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services