Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxbhp-000626-Kj for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 12:44:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wxbho-00063x-Ro for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 12:44:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wxbhm-00063l-Q6 for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 12:44:38 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxbhk-0005lR-1c for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 12:44:37 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E92565F7F9; Thu, 19 Jun 2014 08:44:32 -0400 (EDT) Date: Thu, 19 Jun 2014 08:44:32 -0400 From: Stephen Frost To: smsiebe@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication Message-ID: <20140619124432.GP16098@tamriel.snowman.net> References: <20140617175511.2589.45249@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zyWBJsol2ZBPjK0b" Content-Disposition: inline In-Reply-To: <20140617175511.2589.45249@wrigleys.postgresql.org> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.11.0-19-generic (x86_64) X-Uptime: 08:42:28 up 71 days, 23:01, 13 users, load average: 0.06, 0.07, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --zyWBJsol2ZBPjK0b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * smsiebe@gmail.com (smsiebe@gmail.com) wrote: > When a user fails to login when the LDAP method is used, the ldapbindpasswd > (in plain text) is leaked to the log, even when the log level is set to > warning. If you don't want the server to see the user's password, don't use LDAP authentication. A much better approach is Kerberos or client-side SSL certificates. There may be something which is done to improve the specific case mentioned here (or perhaps not..), but if LDAP is used then the PG server will see the user's password because that's how that authentication system works. Thanks, Stephen --zyWBJsol2ZBPjK0b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTotswAAoJEO1sijiDR2RVNUoQAL8v+tIIwQxtrh4Gzb0Gi0Vt eHGX8MUQaBYo3f78uiOasDoQ91WxwodmJ5QMCiGWQteBSCcptlKLuMtJRPYDs80E 6lxE1nQsyi7rZrLcWAndg+cWrDGAtm87Im/BvL88IcrTRYEN2hcNcukK6zlsd0rl xgtctbIn+HlHk7SP7UG2JO7f+2E2pf9gx/nupYkpJ5tWMnYLxYUSOgsOdKWm8Xiq tapn6mdB283jBinEDWqEeu1PzfncN/NMEMDUbLZx/tyj7g8wFCtpnq6tgIS7dqjX G6dneZmkvIFyI9pR7Wn7VknLCx7Rm5NIdAHJNQFrwhcmiBA9K6fa6/13duJmG3UH hqoGfR1TpgG+p1lu+bO1jkRjjilDlO0l4e8odg/Z9fjKwF5qzWssYzZvje6PFYeC wlP38FZ+C/W/xeS+24ZH8gtdNk7fsNtLj7v5/HwOJgAOTbWPAyk/ltdV+tuVBnp8 AdGP0attw5CpmLYEZ/hcgPn9gvn/isIPmMZruJO3g1JStUIfUVaZwZcMWQ6zA2fW ogqfZ9JONC5NqSTIhWbaCnB/R07aCieHvIEsq7ZZ/eVaWkCSPpyg/VOUOhjZXe5F 0eR9ibVEe4CpgKYN9gUlv28WJ1LejaV93h7OtttYjIbE0zWj0r5e2bCTQswBKPdY kV8d7Usp31FT6b1tCAqY =KzyZ -----END PGP SIGNATURE----- --zyWBJsol2ZBPjK0b--