Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIj2P-0005tV-70 for pgsql-odbc@arkaria.postgresql.org; Fri, 24 Jul 2015 19:53:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIj2O-0000Nz-HQ for pgsql-odbc@arkaria.postgresql.org; Fri, 24 Jul 2015 19:53:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIj2O-0000Nq-0q for pgsql-odbc@postgresql.org; Fri, 24 Jul 2015 19:53:44 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZIj2K-0006N4-FR for pgsql-odbc@postgresql.org; Fri, 24 Jul 2015 19:53:42 +0000 Received: by wibud3 with SMTP id ud3so40914059wib.0 for ; Fri, 24 Jul 2015 12:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=4kPPUhV0OawRBXr+qCZLnE5KQsp23+kR/Y8aVC5X/HI=; b=OKT3XSef0cQkP2xkmUs/xf0/r7avpJ62igismKs4zC/TzygI5PJnMwYXLp4j1lWrX2 kZW1A8JdXi+865bGWnXqFath/49OCchcyvZj64l43teXeRhqMa6A3H1ptJJP2EVwWn0z nH2Isz0cji6Sqnr2HV/UIl0C4A1NSrIuf4gVZFobEX5JnMCW4TZp3eqgVU3lrsm4Zhdl d+8iNrBO5Fyl1BV3nZ8Bl8osroGwg2G+NpalpandNVcEh7J/Cu30OFjpEcvHsdxtPiCh uB/lkyB1mwjifv90RLOcX7VM+dkHEwpAm4wcyoX70SiFuQa/SheOq6auaWNhyoEZtyK2 69lw== X-Received: by 10.195.13.1 with SMTP id eu1mr30069049wjd.131.1437767618023; Fri, 24 Jul 2015 12:53:38 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id w8sm14168297wja.15.2015.07.24.12.53.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 12:53:37 -0700 (PDT) Message-ID: <55B297BF.4010000@iki.fi> Date: Fri, 24 Jul 2015 22:53:35 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Ramesh Reddy , Lindsay Stevens , pgsql-odbc@postgresql.org Subject: Re: When will you be adding ISC_REQ_MUTUAL_AUTH to the ODBC dwSSPIFlags variable? References: <55A7FA16.2040505@redhat.com> <1360030332.2976322.1437491511290.JavaMail.zimbra@redhat.com> <2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com> In-Reply-To: <2137224063.5727693.1437760588699.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) 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 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