pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov - Mailing list pgadmin-hackers

From Ashesh Vashi
Subject pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov
Date
Msg-id E1Ze0Bu-000188-40@gothos.postgresql.org
Whole thread Raw
List 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.s@mail.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(-)


pgadmin-hackers by date:

Previous
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Resolved an issue related enabling the menus for the
Next
From: Ashesh Vashi
Date:
Subject: Re: Patch : PGPASSFILE fix