From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pavan Kumar <pavan.dba27@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: scram-sha-256 encrypted password in pgpass
Date: Mon, 22 Jun 2020 14:56:19 -0700
Message-ID: <9c0675b9-6a4e-8692-2660-c6a37385f2aa@aklaver.com> (raw)
In-Reply-To: <CA+M0sHEJC6whG8VfNk=393uoDsedQg+tVZ9vy7GLdWBZR5BC0A@mail.gmail.com>
References: <CA+M0sHEJC6whG8VfNk=393uoDsedQg+tVZ9vy7GLdWBZR5BC0A@mail.gmail.com>
On 6/22/20 1:34 PM, Pavan Kumar wrote:
> Hello expertes,
>
> scram-sha-256 encrypted passwords are supported in .pgpass file ? If yes
> kindly provide us an example.
>
> I am using below format and it is not working for me
>
> /|pglnx1|/:/|5432|/:pgbouncer:/|pgadmin|/:"SCRAM-SHA-256$4096:6IDsjfedwsdpymp0Za7jaMew==$rzSoYL4ZYsW1WJAj7Lt3JtNLNR73AVY7sfsauikweblk][=:Hxx/juPXJZHy5djPctI=*/"/*
You need to use the plain text version of the password like for md5.
Supplying the password via .pgpass is no different from supplying it
from the command line or script.
>
> Please advise
>
> --
> *Regards,
>
> #! Pavan Kumar
> ----------------------------------------------*-
> *Sr. Database Administrator..!*
> *NEXT GENERATION PROFESSIONALS, LLC*
> *Cell # 267-799-3182 # pavan.dba27 (Gtalk) *
> *India # 9000459083*
>
> *Take Risks; if you win, you will be very happy. If you lose you
> will be Wise *
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: adrian.klaver@aklaver.com, pavan.dba27@gmail.com, pgsql-admin@lists.postgresql.org, pgsql-general@lists.postgresql.org
Subject: Re: scram-sha-256 encrypted password in pgpass
In-Reply-To: <9c0675b9-6a4e-8692-2660-c6a37385f2aa@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