Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iVecm-00015o-V8 for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2019 16:39:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iVecl-0002UT-Dn for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2019 16:39:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iVecl-0002UM-3u for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2019 16:39:07 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iVecg-0002bn-RS for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2019 16:39:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 256EC6A9; Fri, 15 Nov 2019 11:38:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 15 Nov 2019 11:38:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=R Z9ZBjpRXgnhhllw9ID25KqzyVLUrBMN5uFvdpqi+7I=; b=4o2OKpIW5odLPRJyi lvalyuimVmMFOoQ1pr4CkQHUZJqHMWVHC46ZubNVlGitZzHdDS6Botqpo/1GaS5j VC2dSk6+f28gxzsL/J4O/VkV1K9ErYlXG/mZTpRP2MwSnAclJUTEf5OBsEkpiRzn Ul6dvwLmCCVtsxtNvkHsLL2jQALRGl2VGWWIIWAN3SH2hyf3+CKSr8qL8LBkQT6Q PS09jfvILNaYa6eatlftYWoBsvLJrPuWE9Da1P8UCGrD38/eWNG0HQ1aVsCTpDsR jfG535FC+FzlEAujR/RudmZU8k9x0Gdsut5l+ZSPEiOn6fozoelo0T1Cmsrgq5g4 zER6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=RZ9ZBjpRXgnhhllw9ID25KqzyVLUrBMN5uFvdpqi+ 7I=; b=aIewzSVzj7y8UKn5mFJpAKjKuH04aKR4Oz8iaytyZ/fGuZQoPX435zsmd JsL2wphhMyvKUUsdmOwbw7fBW0cYt3kIcJln8UL1kuBlWv1On6mKtRPvlEv21K/v 26Ax5le2sq5Rrf5oQ+rZFWuJfAuP29gJFYhVYHmD6IJnavOLP1+5Akx48fhl3TfR p0a3B+bXeAbUcKyk65AuSVuKvyXZBhwa2braunvQqguH8WvZ9bHkrlUpbPwAj4/3 Hd+qNE3tnWGy+xWy0WIbJT2Y5E9J/HXbgJAb5muCrww24ORKdVF99zPDhLy4NL8J FD9WFCR/o0mVFpubKJAI9hjuZRKjg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudefhedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepleejrdduudefrdefuddrvdegfeenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (97-113-31-243.tukw.qwest.net [97.113.31.243]) by mail.messagingengine.com (Postfix) with ESMTPA id C980D8005C; Fri, 15 Nov 2019 11:38:56 -0500 (EST) Subject: Re: Authentication: MD5 to SCRAM-SHA-256 error To: Dave Hughes , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Fri, 15 Nov 2019 08:38:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/15/19 8:23 AM, Dave Hughes wrote: > Hello, > We're currently using PostgreSQL version 10.5 in a Linux environment. > We were wanting to change the password authentication from MD5 to > SCRAM-SHA-256.  I performed these steps to do so: > 1) Modified the postgresql.conf and changed the password_encryption > entry from "md5" to "scram-sha-256". > 2) restarted the database > 3) Changed all our users password to a default password using the command: > alter user xxx password 'xxx'; > 4) Once I did this, I could run this sql statement and verify the > password was now a sha-256 password: > select passwd from pg_shadow where username = 'xxx' > 5)  Finally, i went into the pg_hba.conf file and changed the > authentication method from md5 over to scram-sha-256. > 6) restarted the database again. > > However when I try to log in now, via command line, I receive the error: > "psql: authentication method 10 not supported".  I tried to search > online for this error but everything I've seen implies that occurs when > some client's libraries are not compatible, but i'm just using psql via > the command line. > > What's worse...I tried to set everything back to MD5 and i'm still > getting the exact same error.  Has anyone else experienced this?  The > only thing I can think of is that even though I'm on version 10.5, maybe > somehow I have old libraries it's trying to use to connect? > > Any help would be greatly appreciated! What Linux distro and version? How was Postgres installed? Do you have more then one instance of Postgres installed? > Thanks! -- Adrian Klaver adrian.klaver@aklaver.com