From: Stephen Frost <sfrost@snowman.net>
To: Steven Siebert <smsiebe@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
Date: Thu, 19 Jun 2014 09:54:28 -0400
Message-ID: <20140619135428.GM16098@tamriel.snowman.net> (raw)
In-Reply-To: <CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com>
References: <20140617175511.2589.45249@wrigleys.postgresql.org>
<20140619124432.GP16098@tamriel.snowman.net>
<CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Steven,
* Steven Siebert (smsiebe@gmail.com) wrote:
> > 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.
>
> Sadly, all other authentication options will not work for us.
>
> I'm not seeing the user password in the log, I'm seeing the bind
> password (ldapbindpasswd) that in the pg_hba.conf file. There is a
> line in auth.c that, on every failed attempt, prints the full (raw)
> configuration line to the log at all log levels. So, this isn't just
> a problem with LDAP (with ldapbindpasswd) but also the RADIUS method
> (radiussecret).
Ah, ok. Kerberos and SSL certs aren't immune to that problem, though
the secrets don't ever end up in the logs- but they still must be
visible to the server process in order. Of course, if you already
have access to the server process, there shouldn't be much to gain
from the Kerberos secret, the RADIUS secret, the SSL private key, or
the LDAP bind password..
> I've submitted a patch and we're discussing the problem further on the
> pgsql-hackers distro. Really, I think it all comes down to finding
> the right balance of security and convenience of the administrator.
> I'm hopeful we'll come up with the right answer soon and I can submit
> a new patch.
Oh, yeah, I saw that discussion but hadn't quite put it together with
this bug report (somehow I saw the bug report after the hackers
discussion...).
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, smsiebe@gmail.com
Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
In-Reply-To: <20140619135428.GM16098@tamriel.snowman.net>
References: <20140617175511.2589.45249@wrigleys.postgresql.org> <20140619124432.GP16098@tamriel.snowman.net> <CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com> <20140619135428.GM16098@tamriel.snowman.net>
* 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