pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dave Hughes <dhughes20@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Authentication: MD5 to SCRAM-SHA-256 error
Date: Fri, 15 Nov 2019 08:38:55 -0800
Message-ID: <c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com> (raw)
In-Reply-To: <CAFTBbFCz8A6p0MbDjMVQ-KzqGeXUE3N-8EEnLPtFxsRJSuQQKA@mail.gmail.com>
References: <CAFTBbFCz8A6p0MbDjMVQ-KzqGeXUE3N-8EEnLPtFxsRJSuQQKA@mail.gmail.com>

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





view thread (5+ messages)  latest in thread

Message-ID: <c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com>
Permalink:  ../c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com/
Also on:    postgresql.org/message-id/c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, dhughes20@gmail.com
  Subject: Re: Authentication: MD5 to SCRAM-SHA-256 error
  In-Reply-To: <c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com>
  References: <CAFTBbFCz8A6p0MbDjMVQ-KzqGeXUE3N-8EEnLPtFxsRJSuQQKA@mail.gmail.com> <c80eba6c-3b24-a370-8d56-ca097663d508@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox