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 1sZtiA-0050Cx-UU for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 14:56:54 +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 1sZti9-000TeM-8T for pgsql-general@arkaria.postgresql.org; Fri, 02 Aug 2024 14:56:53 +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 1sZti8-000TeB-TM for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 14:56:52 +0000 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sZti6-002mpC-LD for pgsql-general@lists.postgresql.org; Fri, 02 Aug 2024 14:56:52 +0000 Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-e0b9589a72dso5056338276.3 for ; Fri, 02 Aug 2024 07:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722610609; x=1723215409; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=fVgUnrJc/5IZCLXRI1PR6/KFVNiJDw2QHp6CpEjdkoA=; b=AVxHIukLMi7GA9qBGPjWsB3KOHOpgpUDgN/TUaIyo2smaoQdJ3S4oGbFTo29GcINHM 8w3rYd0VCBxAGi+cUjI6SWEw8pxI2YdXyypl55RRdP63ESZkJuheb8uH17vgJVgjw9Zg xG5Jdu8UkDgkSFhPEo84GIU/aaCGeR1ogqxixXnJyCG9r9KGgHcl9AUrqceGgq0i/qbo SngpIX3Gy9oLIHU8y0zu6VQX9LJ/+xsk4rJHD4aFnEBI4RQpzztoryqP6uuSfEnzrtZu tc39r5FCuwPwb5nlvQrk/0+ZfKLg+67aF8Ju5rFjcoTKr5TUSGGnhI9IZcTYqmdfjIhh LFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722610609; x=1723215409; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fVgUnrJc/5IZCLXRI1PR6/KFVNiJDw2QHp6CpEjdkoA=; b=ILGIcIVeJ3cihaXYHIsrFJpea46W6uhm2aEa3voABdaF3sfILwfQntAi9eEdls5IBK RAUoBOCWDUZHVtLvXJ7ohjmAwmrKXSwRIjloV39aEu5Jc/SCHBLQjWmbYQCZFvUxEfcR pLgt9JO+FgzKXTwafDChhiHEXSDswYa9r9oamAAQdJrAQtPzJu/jC8cxcuJK84/u1erv MZhb6msrou8Az5/8TZC07UGMItWcKStTSZuawFDTpyLMwd9ITh/I5igakYU0kDdsmEDl aq7LSz1HIdGHajQsB/FnGtOKvet/ljWJl+sH32xHcrOZ0MPZN3xyDitBKbmEEsx+6F5P IdBA== X-Gm-Message-State: AOJu0YwM1WzClBwgediErQ8iuvLY3s3mT90UIK7KVl57LSts2FhGOHKV ahpJUUi6mKowTPYJMEuSr9jlVUah+dGlqtw6Pk9rgvhomJiia7jM+pUMU6fdohsdzbZeqLo/kJJ USO2b0Pkw1dUEgXWdQQiT5Vsi96OFAycE X-Google-Smtp-Source: AGHT+IFrwXtpv8KJOyM4knnsY8ud0x4RKJT/HP9PzZaoGAsWN1w6jjnqVAeOQyfr0ekI8Vb8ozUAO6uAnrn38ao0z0k= X-Received: by 2002:a05:6902:1507:b0:e0b:cc1d:3731 with SMTP id 3f1490d57ef6-e0bde2d1938mr4665764276.2.1722610608662; Fri, 02 Aug 2024 07:56:48 -0700 (PDT) MIME-Version: 1.0 From: Andy Hartman Date: Fri, 2 Aug 2024 10:56:37 -0400 Message-ID: Subject: Connection Issue To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000006a71c5061eb489a9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006a71c5061eb489a9 Content-Type: text/plain; charset="UTF-8" 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)" Any ideas? Thanks. --0000000000006a71c5061eb489a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm= using a Powershell script to connect to a remote 16.3(windows) version of = the DB.=C2=A0

Add-type -path 'C:\Program Files (x86)\Postgr= eSQL\Npgsql\bin\net451\Npgsql.dll'

# Define co= nnection strings for MS SQL and PostgreSQL
$pgsqlConnectionString= =3D "Host=3Dxxxxxx;Port=3D5432;Username=3Dxxx;Password=3Dxx;Database= =3Dxxx;"

# Create connection to PostgreSQL
$pgsq= lConn =3D New-Object Npgsql.NpgsqlConnection
$pgsqlConn.Connectio= nString =3D $pgsqlConnectionString
$pgsqlConn.Open()


W= hen this statement hits I get an error:

Exception calling "Open= " with "0" argument(s): "Authentication method not supp= orted (Received: 10)"

Any ideas?

Thanks.
--0000000000006a71c5061eb489a9--