pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov
Date: 2015-09-21 12:27:30
Message-ID: E1Ze0Bu-000188-40@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Honour the PGPASSFILE environment variable (if provided)

Current implementation saves/retrieves password from the default .pgpass
(on non-windows)/pgpass.conf (on windows). But - actually when
connections are made libpq honours PGPASSFILE. Hence - we need to do the
same through pgAdmin.

While fetching the configuration file path, we will create the required
directory structure (if permissible and does not exist) to keep the
PGPASSFILE in it. And, create the file represented by PGPASSFILE with
0600 permission (if does not exist).

PATCH: Prasad Somwanshi
Reworked by: Sanket Mehta
Reviewed by: Ashesh Vashi & Sanet Mehta

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=fcbc54678b69f64dcc278fe0ed156cba7f1b2372
Author: Prasad Somwanshi <prasad(dot)s(at)mail(dot)com>

Modified Files
--------------
CHANGELOG | 5 +++
pgadmin/frm/frmConfig.cpp | 3 --
pgadmin/frm/frmPgpassConfig.cpp | 8 ++---
pgadmin/schema/pgServer.cpp | 5 ++-
pgadmin/utils/sysSettings.cpp | 74 ++++++++++++++++++++++++++++++---------
5 files changed, 69 insertions(+), 26 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2015-09-21 12:27:40 Re: Patch : PGPASSFILE fix
Previous Message Ashesh Vashi 2015-09-21 04:45:37 pgAdmin 4 commit: Resolved an issue related enabling the menus for the