Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIhDY-0001DL-FT for pgsql-odbc@arkaria.postgresql.org; Fri, 24 Jul 2015 17:57:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIhDX-0004ni-Rl for pgsql-odbc@arkaria.postgresql.org; Fri, 24 Jul 2015 17:57:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIhDA-0004O5-Ja for pgsql-odbc@postgresql.org; Fri, 24 Jul 2015 17:56:44 +0000 Received: from mx3-phx2.redhat.com ([209.132.183.24]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZIhD1-00011I-0t for pgsql-odbc@postgresql.org; Fri, 24 Jul 2015 17:56:42 +0000 Received: from zmail13.collab.prod.int.phx2.redhat.com (zmail13.collab.prod.int.phx2.redhat.com [10.5.83.15]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t6OHuSI9028951; Fri, 24 Jul 2015 13:56:28 -0400 Date: Fri, 24 Jul 2015 13:56:28 -0400 (EDT) From: Ramesh Reddy To: Lindsay Stevens , pgsql-odbc@postgresql.org Message-ID: <2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com> In-Reply-To: References: <55A7FA16.2040505@redhat.com> <1360030332.2976322.1437491511290.JavaMail.zimbra@redhat.com> Subject: Re: When will you be adding ISC_REQ_MUTUAL_AUTH to the ODBC dwSSPIFlags variable? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5727692_1434508755.1437760588699" X-Originating-IP: [10.10.52.100] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - GC43 (Linux)/8.0.6_GA_5922) Thread-Topic: When will you be adding ISC_REQ_MUTUAL_AUTH to the ODBC dwSSPIFlags variable? Thread-Index: hhYrnx3TZr7JOHdmJCpaw7H6Ied3pw== X-Pg-Spam-Score: -8.1 (--------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org ------=_Part_5727692_1434508755.1437760588699 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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? Thanks Ramesh.. ----- Original Message ----- > I have pg-odbc working with Windows sspi authentication. There is a guide > online [1] that describes the key element: you need to run the postgres > service as a domain user that you've registered as a security principal for > that machine. If you need a service name other than POSTGRES there is a GUC > setting for krbsrvname; set that and a corresponding SPN. > The only weird behaviour I've noticed is that looking at security events in > Windows event manager, after some time the client kerberos authentication > reverts to NTLMv1. I suspect that might be a problem between the pg domain > user and AD though. > Also, connections never seem to pool but there's probably a good security > reason for that. > [1] > https://wiki.postgresql.org/wiki/Configuring_for_single_sign-on_using_SSPI_on_Windows > On 22 Jul 2015 1:12 am, "Ramesh Reddy" < rareddy@redhat.com > wrote: > > Has any one have working solution that has kerberos authentication working > > on > > windows based pg-odbc driver? We believe the below flag is required for it > > to work correctly, can anybody weigh in options we have in terms of setting > > this flag with out code modification. We are also looking to build locally > > to verify the solution. > > > Thanks > > > Ramesh.. > > > ----- Original Message ----- > > > > We need mutual authentication via ODBC, looking into the psqlODBC driver > > > to > > > > find where the Kerberos connection was getting created. Here in > > > sspisvcs.c > > > > the PerformKerberosEtcClientHandshake contains the set of SSPI flags > > > being > > > > set on the request (held in the dwSSPIFlags variable). > > > > This set is missing the flag required for mutual authentication > > > > (ISC_REQ_MUTUAL_AUTH). Can this be added to your ODBC driver? > > > > > > > > -- > > > > Regards, > > > > Debbie Steigner > > > > Red Hat Global Support Services > > > > Principal Technical Support Engineer > > > > > > > > > > > > > > > > -- > > > > Sent via pgsql-odbc mailing list ( pgsql-odbc@postgresql.org ) > > > > To make changes to your subscription: > > > > http://www.postgresql.org/mailpref/pgsql-odbc > > > > > > > -- > > > Sent via pgsql-odbc mailing list ( pgsql-odbc@postgresql.org ) > > > To make changes to your subscription: > > > http://www.postgresql.org/mailpref/pgsql-odbc > ------=_Part_5727692_1434508755.1437760588699 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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 GSSAP= I with Windows ODBC driver. Can this be added to the code?

Thanks

Ramesh..


= I have pg-odbc working with Windows sspi authentication.  There is a g= uide online [1] that describes the key element: you need to run the postgre= s service as a domain user that you've registered as a security principal f= or that machine. If you need a service name other than POSTGRES there is a = GUC setting for krbsrvname; set that and a corresponding SPN.

The only weird behaviour I've noticed is that looking at sec= urity events in Windows event manager, after some time the client kerberos = authentication reverts to NTLMv1. I suspect that might be a problem between= the pg domain user and AD though.

Also, connections never seem to pool but there's probably a = good security reason for that.

[1] https://wiki.po= stgresql.org/wiki/Configuring_for_single_sign-on_using_SSPI_on_Windows<= /p>

On 22 Jul 2015 1:12 am, "Ramesh Reddy" <rareddy@redhat.com&g= t; wrote:
Has any one have working soluti= on that has kerberos authentication working on windows based pg-odbc driver= ? We believe the below flag is required for it to work correctly, can anybo= dy weigh in options we have in terms of setting this flag with out code mod= ification. We are also looking to build locally to verify the solution.

Thanks

Ramesh..

----- Original Message -----
> We need mutual authentication via ODBC, looking into the psqlODBC driv= er to
> find where the Kerberos connection was getting created.  Here in = sspisvcs.c
> the PerformKerberosEtcClientHandshake contains the set of SSPI flags b= eing
> set on the request (held in the dwSSPIFlags variable).
> This set is missing the flag required for mutual authentication
> (ISC_REQ_MUTUAL_AUTH).  Can this be added to your ODBC driver? >
> --
> Regards,
> Debbie Steigner
> Red Hat Global Support Services
> Principal Technical Support Engineer
>
>
>
> --
> Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc<= br> >


--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

------=_Part_5727692_1434508755.1437760588699--