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 1qlrUk-004eMA-Al for pgsql-docs@arkaria.postgresql.org; Thu, 28 Sep 2023 13:55:58 +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 1qlrUi-00DMBK-QI for pgsql-docs@arkaria.postgresql.org; Thu, 28 Sep 2023 13:55:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlrUi-00DMB7-Hn for pgsql-docs@lists.postgresql.org; Thu, 28 Sep 2023 13:55:56 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlrUb-007832-Jk for pgsql-docs@lists.postgresql.org; Thu, 28 Sep 2023 13:55:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=NjVp/yUeiY/Y/3KyZMDcWr7wf7c1L5hl31aUAIQoLKY=; b=q8oxC UEDr4bdafkmUzk8KOFA0sQfOxf87CLSklov/0KEfbReHPmLwtHwNTFB0NfzhubFbhiD7gVMHtGM+b nRn/r3Ody/JDjDug9gEGdd5PHi87VCreVTsm1Cde2s6UahSNN6TG0cjE4sGgHx2zMsLvhraNv8bJX /qAVHrBhO/CoH9EAAaSbbNdD/O6ISX5DV9k2hHQ25CV8ym8wWwI0SmapmX6lsz5oFA+ULGuoB5WvQ MhnYHZQT0liRSyuAdZl0iLNG7CtRAeKeG/kSIy/lBZUMnLenf1IMQ0Imzd/Eghk1GkCVmBEMgNXrh S8jjXnDkiMh8loiPAhtMKWHx90N/Q==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qlrUV-00AKPu-1l; Thu, 28 Sep 2023 09:55:43 -0400 Date: Thu, 28 Sep 2023 09:55:43 -0400 From: Bruce Momjian To: Stephen Frost Cc: tpo_deb@sourcepole.ch, pgsql-docs@lists.postgresql.org Subject: Re: Make SSPI documentation clearer Message-ID: References: <167846222574.1803490.15815104179136215862@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="k8iTnLM9iGFHULsN" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --k8iTnLM9iGFHULsN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 27, 2023 at 07:09:02PM -0400, Bruce Momjian wrote: > On Sun, Mar 12, 2023 at 08:36:53PM -0400, Stephen Frost wrote: > > > When the server is on a non-Windows platform then the server must use GSSAPI > > > if it wants to authenticate the client either via Kerberos or via Active > > > Directory. A client on a Windows platform that connects to a non-Windows > > > Postgresql server can either use SSPI (strongly encouraged) or GSS (much > > > more difficult to set up) if it wants to authenticate via Kerberos or Active > > > Directory. A client from a non-Windows platform must use GSS if it wants to > > > authenticate via Kerberos or Active Directory." > > > > Rather than work in negative, I feel like it might make more sense to > > work in positives? That is, perhaps this instead: > > > > On Windows platforms, SSPI is the default and most commonly used > > mechanism. Note that an SSPI client can authenticate to a server which > > is using either SSPI or GSSAPI, and a GSSAPI client can authenticate to > > a server which is using either SSPI or GSSAPI. Generally speaking, > > clients and servers on Windows are recommended to use SSPI while clients > > and servers on Unix (non-Windows) platforms use GSSAPI. > > I developed the attached patch. My first attempt was too terse, so here is a more detailed version, attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --k8iTnLM9iGFHULsN Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="sspi.diff" diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml index a72f80f033..9d1e7d63ef 100644 --- a/doc/src/sgml/client-auth.sgml +++ b/doc/src/sgml/client-auth.sgml @@ -1505,10 +1505,12 @@ omicron bryanh guest1 negotiate mode, which will use Kerberos when possible and automatically fall back to NTLM in other cases. - SSPI authentication only works when both - server and client are running Windows, - or, on non-Windows platforms, when GSSAPI - is available. + SSPI and GSSAPI + interoperate as clients and servers, e.g., an + SSPI client can authenticate to an + GSSAPI server. It is recommended to use + SSPI on Windows clients and servers and + GSSAPI on non-Windows platforms. --k8iTnLM9iGFHULsN--