Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3sxg-0006U9-3M for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 00:41:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3sxe-0002YT-5O for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 00:41:06 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3sxd-0002Qw-Sp for pgsql-general@lists.postgresql.org; Thu, 05 Apr 2018 00:41:05 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3sxa-0006VM-G0 for pgsql-general@postgresql.org; Thu, 05 Apr 2018 00:41:05 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 871C7224F4; Wed, 4 Apr 2018 20:40:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 04 Apr 2018 20:40:59 -0400 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-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WDuqKu HjmCwGf7QfatHrWPJTB9aqOmfOncTiPUik2AU=; b=Uq07yO7NIxUCG7kLyncf5j AHYpe92vbBscP+cpyIQRukFm0IUStczZ1nYd+6VPWosEXqGf4ZhCrTDr7H58z1+K s9BiNpN3GVMiiTCFRihwX/8SemxaGdiAWwKJK3Gb2hCEmqaebYJG/olGhiQA7Fdy I7dJItICOUtiengP/zFmagltps61hwa3qmUjjEUTH1cp+Cgtjiuwh5aIRuwnw6MM i5XDf4XxozAryqG6LElwbe5cnPWtR84p/uiCeqh9ikOBW14Rl+hwLoscC6j+klJc B0hzY+Otayei6P5qBLT7C07EnBN8eQ2WuimGr/BCNsQzparkjdiHGQkHlda+hhoA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 3C3011025A; Wed, 4 Apr 2018 20:40:59 -0400 (EDT) Subject: Re: LDAP Bind Password To: "Kumar, Virendra" , "pgsql-general@postgresql.org" References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 4 Apr 2018 20:40:58 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/3/18 16:12, Kumar, Virendra wrote: > Is anybody aware of how to encrypt bind password for ldap authentication > in pg_hba.conf. Anonymous bind is disabled in our organization so we > have to use bind ID and password but to keep them as plaintext in > pg_hba.conf defeat security purposes. We want to either encrypt it or > authenticate without binding. Any insights into this is appreciated. You can use the "simple bind" method that is described in the documentation. That one doesn't involve a second bind step. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services