Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Change the authentication method in pg_hba.conf

Sumit Rawal answered on June 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • pg_hba.conf reload
  • pg_hba.conf location
  • where to find pg_hba.conf in ubuntu
  • no pg_hba.conf entry for host user database ssl off
  • pg_hba.conf file location windows
  • no pg_hba.conf entry for host
  • no pg_hba.conf entry for host heroku

  • Change the authentication method in pg_hba.conf

    0

    NOTE

    This step is is not strictly necessary because PostgreSQL will use SCRAM-SHA-256

    authentication for SCRAM-SHA-256-hashed passwords, even if the authentication

    method is set to md5 in pg_hba.conf. However, we strongly recommend that you

    apply this change to ensure that passwords using the old md5 hashing method are not

    allowed.

    Follow these steps to change the authentication method:

    1. Adapt pg_hba.conf by replacing the Vault relevant occurrences of md5 with scramsha-256. That will prevent users who still have an old md5 password from authenticating.

    Example:

    # pg_hba.conf

    # TYPE DATABASE USER ADDRESS METHOD

    local [vault-db] all scram-sha-256

    2. Reload the configuration as we describe in above.

    3. Check the log file or examine the view pg_hba_file_rules to see if the reload was

    successful.  

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jun 01 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.