From: Josh Berkus <josh@agliodbs.com>
To: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: DOS-style line endings in .pgpass
Date: Mon, 14 Nov 2016 11:31:22 -0800
Message-ID: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Version Tested: 9.6.1
Platform: Fedora 24 Docker Base Image
Summary: DOS-style line endings (CRLF) cause .pgpass to fail.
Steps to Reproduce:
1. Install PostgreSQL
2. Set up user with md5 passwords
3. Create pgpass file using program which makes CRLF line endings, such
as Python's CSV module, or windows Notepad.
4. Try to log in
5. Get:
psql: FATAL: password authentication failed for user "postgres"
password retrieved from file "/var/lib/pgsql/.pgpass"
What appears to be happening here is that one of the characters of the
CRLF is being appended to the password, making it invalid.
Is this a known issue on Windows? Or is this peculiar to Fedora?
If it's a general issue, it would be friendly to Windows devs to fix it.
--
--
Josh Berkus
Red Hat OSAS
(any opinions are my own)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: josh@agliodbs.com
Subject: Re: DOS-style line endings in .pgpass
In-Reply-To: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com>
References: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.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