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 1sZvPR-005HRn-3Y for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 16:45:40 +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 1sZvOQ-001uDQ-Dj for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 16:44:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZvOP-001uDH-Qa for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 16:44:37 +0000 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZvON-002nqB-Hg for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 16:44:37 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 50F2B1151A7F; Fri, 2 Aug 2024 12:44:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 02 Aug 2024 12:44:33 -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=1722617073; x=1722703473; bh=yppQV4m9CHgg3TkFchR0juRrM3Q3XblFCxI1V3h1t08=; b= Sb3gOv+Z15XSoqMML6hNnROmmcmKO2X7De+7tnx/6jJfCVP1sB9SR2EQQbUK7QIN 9TXUp9KLx9j2uunB7ks1ML4Q+ganiDtYNCyFXwjIVEGlmeDhq7cRg2Z+HEP1RVeu nctYLj622UTDzuxE3vKL9FrW4s2bEUUmaWtkMCwM/xLmLKuHybZHhoNPygQTecDV f+P3ny0CCIey6lXZWyVth7heNGDroaNYLh3+U3oKc50GHInB1z2Rdco0BDN8waOt /JX5f4FBBal7bf54YrC34uO1yamdW7YamvC6kER7J5tKae1T7d6Kf1l79oFa39Qs b0grRoJMZBFHKqqG6UORwQ== 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=1722617073; x= 1722703473; bh=yppQV4m9CHgg3TkFchR0juRrM3Q3XblFCxI1V3h1t08=; b=m YnXNgXoFBw8mYywX9YSGuKg0YuR4ajtm01nqFfk9VNcfpfLZ1lEpxe/6bZxg7NXI Dq1wP/w8KvWytJKVgbOAjhAocaBqt6HhYGaEtQTiSFxoQ310klARMJz7R/vq7g3X aXkcx6cb7M5xsKgmdaoDr9amMil+eUHdeshhVoUZEyi7ZYKg8OaY9vkk2x6rrKL6 dc2yqyspNE2mJRiBInsiEpjkAEBgNJzbeJC7G3pJUCLyWVD9cgipb6F6nOPbd0vS jE9g7Hyjvq4gM8R1ezYrVvxNNPBhqGpnRB+j06G8bGWjZFejs5s5pVZgDPE+UaG4 67O1l8Uaik1hD9MgQr/Zw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkedtgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffgteeggfehkeejheetieeliefg teeikeejvdeiveeigfehvedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdp nhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Aug 2024 12:44:20 -0400 (EDT) Message-ID: <45197a47-fadd-4588-9042-8a22da5f9148@aklaver.com> Date: Fri, 2 Aug 2024 09:44:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Connection Issue To: Andy Hartman Cc: "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: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/2/24 9:32 AM, Andy Hartman wrote: > How can I tell that? I don't use NET or npgsql so I getting out of my depth here. The first thing I would do is look at the package/installer you used to load npgsql for version info. Second look at Installed Software and see if the version is reported there. > >  Thanks. > > On Fri, Aug 2, 2024 at 12:18 PM Adrian Klaver > wrote: > > > > 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 > -- Adrian Klaver adrian.klaver@aklaver.com