From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Ramesh Reddy <rareddy@redhat.com>
To: Lindsay Stevens <lindsay.stevens.au@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: When will you be adding ISC_REQ_MUTUAL_AUTH to the ODBC dwSSPIFlags variable?
Date: Fri, 24 Jul 2015 22:53:35 +0300
Message-ID: <55B297BF.4010000@iki.fi> (raw)
In-Reply-To: <2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com>
References: <55A7FA16.2040505@redhat.com>
<1360030332.2976322.1437491511290.JavaMail.zimbra@redhat.com>
<CAG2CW_Ky=RUaPttj5DtxefZYcAQ97JdrqYqky0PAvwmFLrZjPQ@mail.gmail.com>
<2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 07/24/2015 08:56 PM, Ramesh Reddy wrote:
> Thanks you Lindsay.
>
> The root of the question after delving little bit more, we did not
> find any properties to enable "Mutual Authentication" when using
> GSSAPI with Windows ODBC driver. Can this be added to the code?
psqlodbc uses libpq for authentication, so this is really a generic
libpq issue. Looking at the libpq code, it will actually always request
mutual authentication (by passing the GSS_C_MUTUAL_FLAG flag to
gss_init_sec_context), but it doesn't check the returned flags to ensure
that it got it. Which actually makes sense because there's a bigger
problem anyway: if the server doesn't request authentication at all,
libpq will happily just connect. The only way you can authenticate the
server is by using SSL, and using sslmode=verify-full or sslmode=verify-ca.
Yeah, it would be nice to do something about that. Patches to libpq are
welcome.
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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-odbc@postgresql.org
Cc: hlinnaka@iki.fi, rareddy@redhat.com, lindsay.stevens.au@gmail.com
Subject: Re: When will you be adding ISC_REQ_MUTUAL_AUTH to the ODBC dwSSPIFlags variable?
In-Reply-To: <55B297BF.4010000@iki.fi>
References: <55A7FA16.2040505@redhat.com> <1360030332.2976322.1437491511290.JavaMail.zimbra@redhat.com> <CAG2CW_Ky=RUaPttj5DtxefZYcAQ97JdrqYqky0PAvwmFLrZjPQ@mail.gmail.com> <2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com> <55B297BF.4010000@iki.fi>
* 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