Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnUQm-0008MA-FO for pgsql-admin@arkaria.postgresql.org; Mon, 22 Jun 2020 21:56:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnUQl-0002DX-Bk for pgsql-admin@arkaria.postgresql.org; Mon, 22 Jun 2020 21:56:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnUQj-0002DM-T4; Mon, 22 Jun 2020 21:56:43 +0000 Received: from [64.147.123.19] (helo=wout3-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnUQb-0000Se-Q1; Mon, 22 Jun 2020 21:56:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 37D0A13CC; Mon, 22 Jun 2020 17:56:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 22 Jun 2020 17:56:21 -0400 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=fm3; bh=H 5slV4rDMYkhHT6984nRr4AoCPX2cIyzVDtB+bbWeV4=; b=iT1l1+Wa2RIQBX2yu fxZX7T7iFfkXQZOooi2/vCmyl6QStOk50SEod8/2xFgBb/qH9ALL2R/XwoIygyOc 3HYcU3FQtrWwdh9eWHvhsb8GobDvaA7Zks6ekXcBiq2WWRd5htF4gg+wkVhZ06Ys UiyUyExDZeqIyPeRi3A3QirEFNzBMt/CxGJZ5+lGIsXS+wiVUvtFHlKssRGUMCPs +SdkkTywtSC+TE5AbFg6ra6BAtseqUjZ1HOqlyGt3Dd/llSRxRwXnV4u8Kh7sGpi C1O6Ua1mc1SI1CL0rDab/T5ziEHdt0SxwUrRvS++81A48fYQZOzZdq58y9YfDCnA H7q8w== 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=fm3; bh=H5slV4rDMYkhHT6984nRr4AoCPX2cIyzVDtB+bbWe V4=; b=SNxji74PDkhLoi4Qh3N74w/P88wNAZcJX3GE7IsoAdUNLNUapdIBGSPNb ajL1YLk6fSOKi8ns3akNy85g1h18U73gy6AWy581rhFshVCzdmm+k95P29T4U6Av PECw49rbln3rhGs685DaF8MbbmAvK9uxibj8oDbGM7rQ+11NiCewupDGXE6QA7o/ 87pTk+XHJbk2suBo00Zvv/LiNCVcYVkyBFNuU28rvz6rdOHyWGI8z38ieXPPQ5fz U10KxvDi7Ez6SFH7LywnhpBqgL+h93lxcBt4w0g1ETvuF483C+lq1UeUJDPcxicz Ad9GvcPLOBlB63avoOvFn6H2/ohMA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekfedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveevfeevfe eugeffkeekhfegieeufffgteeujedvgffhueejjefhkeejleegtdegnecukfhppeehtddr udeljedrkedtrddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E3003067405; Mon, 22 Jun 2020 17:56:20 -0400 (EDT) Subject: Re: scram-sha-256 encrypted password in pgpass To: Pavan Kumar , Pgsql-admin , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <9c0675b9-6a4e-8692-2660-c6a37385f2aa@aklaver.com> Date: Mon, 22 Jun 2020 14:56:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.19 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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