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 1sZuze-005DvE-HV for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 16:19:02 +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 1sZuzc-001esY-Tg for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 16:19:00 +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 1sZuzb-001esD-Lt for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 16:19:00 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZuzY-002jpi-Mh for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 16:18:58 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 3A788138DE58; Fri, 2 Aug 2024 12:18:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 02 Aug 2024 12:18:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=1722615535; x=1722701935; bh=SZEwA5AtlopXaV4wbkuzwRYhH+vM+LCglk18+mCSPM0=; b= J4qwnJr0wFxt0WKgCLzPhOpyc3un6KgLiC4bDy8+iWf+ww4/rsOEcRHOlRuYxwf0 8bQpFMZiSoc/NWFHmo//PHb55yigknTqhNhZv5APzktV7Y9RrLvOqnJHlsHTTOpV fff69HVkcw3CMVTjw5n/3UIlHrsyXxY4Fbc3u7K+tjjhRt0LY1iDVDQrVpWZBfsa HyK0ELKW4TE6MZ3FB2tAY6Fug03vy55aGerLuUGRncjecT/xgZSbNriarpOt0NUC HNTuXpRVIoRYQAurUQ2+jere8GMo3zXbBuntHTtk1wQUK2M5R4CdNdy3A4vumOPY wKk+TZcoK3CyaQpepewldg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1722615535; x= 1722701935; bh=SZEwA5AtlopXaV4wbkuzwRYhH+vM+LCglk18+mCSPM0=; b=i eW2lbEmOBuyQ+xU7vPF7U4oshwR5zISGu2Zew5Zz/tugBtLAsXBee+dc3GOsh0WI n9SvCzeC3GXWQkFklnbEdzrTGyQijF7M4GFE06L/MC8Z86RAADEBd0wku/xlM9Vb sNoxADJF+Zjz//mZEZmf8WyGY7HYFtlPCcd79JqGXfDXacm3b9j5GiTR6ezB95N2 wvPTZ7ODB99dPY4ZUXpaEesm0p7pe/P+e/1D2G6Edl7rAYwXrbETTDvUCJWJifI/ 19HqECIcAlbPOoatUyMTHh0AtI6e72YXBES0jiUaQ5n9fK81mB4nzOCTxUCJI3yJ mEWzMCPwl8ExyDHVXrGOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkedtgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfvefhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffveehgffgtdfgfedvtdejteetgedttdeujefhleei jeehiedtjeeggfegiedugfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhn sggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Aug 2024 12:18:53 -0400 (EDT) Message-ID: Date: Fri, 2 Aug 2024 09:18:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Connection Issue To: Andy Hartman References: Content-Language: en-US Cc: "pgsql-general@lists.postgresql.org" From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/2/24 9:00 AM, Andy Hartman wrote: Reply to list also. Ccing list. > I changed to md5 and I can connect via HeideSQL interface no problem Changed what to md5? The issue is with Npgsql(?) though. What is the Npgsql version? > > On Fri, Aug 2, 2024 at 11:05 AM Adrian Klaver > wrote: > > 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 > -- Adrian Klaver adrian.klaver@aklaver.com