public inbox for [email protected]  
help / color / mirror / Atom feed
From: Murtuza Zabuawala <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: PATCH: To fix the issue where pgAdmin4 was not honouring ssl mode options (pgAdmin4)
Date: Wed, 5 Oct 2016 11:53:31 +0530
Message-ID: <CAKKotZT6ccy0LyggsUiTYGQ83txZYSv0n4C7yEnx0vmoyE3rhg@mail.gmail.com> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Hi,

PFA minor patch to fix the issue where pgAdmin4 was not honouring ssl mode
options.
RM#1817

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


Attachments:

  [application/octet-stream] RM_1817.patch (590B, 3-RM_1817.patch)
  download | inline diff:
diff --git a/web/pgadmin/utils/driver/psycopg2/__init__.py b/web/pgadmin/utils/driver/psycopg2/__init__.py
index ee90545..89387cd 100644
--- a/web/pgadmin/utils/driver/psycopg2/__init__.py
+++ b/web/pgadmin/utils/driver/psycopg2/__init__.py
@@ -290,7 +290,8 @@ class Connection(BaseConnection):
                 database=database,
                 user=user,
                 password=password,
-                async=self.async
+                async=self.async,
+                sslmode=mgr.ssl_mode
             )
 
             # If connection is asynchronous then we will have to wait


view thread (2+ messages)  latest in thread

reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: PATCH: To fix the issue where pgAdmin4 was not honouring ssl mode options (pgAdmin4)
  In-Reply-To: <CAKKotZT6ccy0LyggsUiTYGQ83txZYSv0n4C7yEnx0vmoyE3rhg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox