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 1sZtqg-0051pd-L7 for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 15:05:42 +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 1sZtqf-000XaW-1b for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 15:05:41 +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 1sZtqd-000XaI-U9 for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 15:05:40 +0000 Received: from fout7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZtqb-002j3V-2X for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 15:05:38 +0000 Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfout.nyi.internal (Postfix) with ESMTP id 70BAF1387F37; Fri, 2 Aug 2024 11:05:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute8.internal (MEProxy); Fri, 02 Aug 2024 11:05:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1722611135; x=1722697535; bh=l2vUS3t0T8+Zj2NK4arW4fEIniPGD3gDHzYZcv3SPZA=; b= V1SsBriePh4hI3qBVPsjU1nG0mcW2+cYssOGE6BjtIW7jv8r9oU+vROqq1CQ9DX7 vBszevPmLI7uVCu4Z9IItkGyXgkMpchgcIPugSaC+YnH7fzl21RTYKbucbz6j+Z5 XBn7kE/DnSfF7GarVDSiLJc/tCN2QwKrGpRIF7epgYPpUVc/iw0AXG717egeiMp4 vcWJlUz351QBxNPta//ekDs/8yrdPQdJA8ip+sZAe95MwIk3RJyDHqRFK0hSJj5L sLqpmN31i/Ro+ZePAa8NGZdOvotUKqwloCYjoqrU3khZv0Cf35+veZgAzN8abrBh RPFGNrUjp7YjAa7vDD1w+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722611135; x= 1722697535; bh=l2vUS3t0T8+Zj2NK4arW4fEIniPGD3gDHzYZcv3SPZA=; b=X gCeydCWKDxqHctfMVL2UUKpJTJC5QtKDdugYLv1Uxf3Ce8uRO0Nmmy9n/K0vVg0h OmTTjxtF0Sm8DVEn5MMaRWnBpTxtNF6/sDw/XiHC+wFQldOWdA2wtlwgMS6X7CKL v94MIPxrBHtFKI2WfLZiKu44pqAJqF7zTlgrIvzPCH6tnN0u0Ubrur6BAOfAqvJu D7jPb0GZ/fm1McSCkhFxSqrVLj3u6bkeCZpD40a808jqDhQ1TbkiVY1f0Zf3EuM4 m6RgHMfat7Lq5HXxW5kkTUPY8bnOJ04zFxI61dAszYlLxKTMsNP06WOZkzssNX+o 18hhJ5VdyMscCAx3XlNNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkedtgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeelkedv leekhedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgs pghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Aug 2024 11:05:34 -0400 (EDT) Message-ID: Date: Fri, 2 Aug 2024 08:05:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Connection Issue To: Andy Hartman , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/2/24 07:56, Andy Hartman wrote: > I'm using a Powershell script to connect to a remote 16.3(windows) > version of the DB. > > Add-type -path 'C:\Program Files > (x86)\PostgreSQL\Npgsql\bin\net451\Npgsql.dll' > > # Define connection strings for MS SQL and PostgreSQL > $pgsqlConnectionString = > "Host=xxxxxx;Port=5432;Username=xxx;Password=xx;Database=xxx;" > > # Create connection to PostgreSQL > $pgsqlConn = New-Object Npgsql.NpgsqlConnection > $pgsqlConn.ConnectionString = $pgsqlConnectionString > $pgsqlConn.Open() > > > When this statement hits I get an error: > > Exception calling "Open" with "0" argument(s): "Authentication method > not supported (Received: 10)" Best bet old library that does not understand scram-sha-256 authentication. > > Any ideas? > > Thanks. -- Adrian Klaver adrian.klaver@aklaver.com