pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: John Slattery <johntslattery@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: GSSAPI Authentication Problem
Date: Wed, 08 Aug 2012 03:42:07 +0900
Message-ID: <5021617F.4080003@tpf.co.jp> (raw)
In-Reply-To: <CA+hybRU0expO0Ndpt23pnHQJYkoza5qY4OKuJ=C-H=0KDaN2xw@mail.gmail.com>
References: <CA+hybRXOLR4JHCG=PU4WkTPJkShEne-gBXuaXE604NAeQ78h0A@mail.gmail.com>
	<501CE24F.5070203@tpf.co.jp>
	<CA+hybRWRUhOQ4YyNPvnH6PaPDf3QpaFgB8NoDRZnG4ry8rbdfg@mail.gmail.com>
	<5020F33F.20209@tpf.co.jp>
	<CA+hybRU0expO0Ndpt23pnHQJYkoza5qY4OKuJ=C-H=0KDaN2xw@mail.gmail.com>

(2012/08/07 23:13), John Slattery wrote:
> On Tue, Aug 7, 2012 at 5:51 AM, Hiroshi Inoue <inoue@tpf.co.jp> wrote:
>> (2012/08/07 1:02), John Slattery wrote:
>>>
>>> On Sat, Aug 4, 2012 at 3:50 AM, Hiroshi Inoue <inoue@tpf.co.jp> wrote:
>>>>
>>>> Hi John,
>>>>
>>>>
>>>> (2012/08/03 21:31), John Slattery wrote:
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I would like to report what seems like a problem with the driver. It
>>>>> doesn't seem possible to override the default user name for
>>>>> authentication by GSSAPI. I'm using a map in pg_ident.conf since my
>>>>> Active Directory user name isn't the same as my Postgresql user name.
>>>>> pgAdmin III and psql allow for this, the former by setting Username in
>>>>> the GUI to my Postgresql user name and the latter by specifying the -U
>>>>> option. I tried setting UID in the connection string I am using to my
>>>>> Postgresql user name but that caused the driver to return the
>>>>> following exception:
>>>>>
>>>>> Run-time error '-2147217843 <tel:2147217843> (800040e4d)':
>>>>>
>>>>> Service negotiation failed;
>>>>> The specified target is unknown or unreachable in
>>>>> DoKerberosEtcProcessAuthentication:PerformKerberosEtcClientHandSh
>>>>
>>>>
>>>>
>>>> How do you login to your Kerberos system?
>>>>
>>>> regards,
>>>> Hiroshi Inoue
>>>>
>>>
>>> Hiroshi,
>>>
>>> I'm not sure I understand your question, but I'll take a shot at
>>> answering it. The client is Windows XP, so I would say I'm using the
>>> standard/default Windows GINA for Winlogon.
>>
>>
>> OK I'd like to confirm SSPI is used.
>> Could you try to set SSLMODE to 'allow' with the user name John?
>>
>> regards,
>> Hiroshi Inoue
>>
>
> Hiroshi,
>
> I set 'User Name' = 'john' and changed 'SSL Mode' from 'disable' to 'allow'.
>
> It worked.
>
> And I'm baffled. Is there a reason it shouldn't work with 'SSL Mode' =
> 'disable'? Would you explain?

Though psqlodbc supports SSPI authentication by itself, it doesn't
look at PGKRBSRVNAME environment variable as you pointed out.
Could you please try the drivers on testing for 9.1.0101 at
   http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/
?

Though psqlodbc communicates with servers by itself, it uses libpq 
connections in some cases.
Setting sslmode to other than 'disable' forces psqlodbc to use libpq
connections.
Setting user name to '' also forces psqlodbc to use libpq connections.

regards,
Hiroshi Inoue



view thread (19+ messages)  latest in thread

Message-ID: <5021617F.4080003@tpf.co.jp>
Permalink:  ../5021617F.4080003@tpf.co.jp/
Also on:    postgresql.org/message-id/5021617F.4080003@tpf.co.jp

 · 

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 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: inoue@tpf.co.jp, johntslattery@gmail.com
  Subject: Re: GSSAPI Authentication Problem
  In-Reply-To: <5021617F.4080003@tpf.co.jp>
  References: <CA+hybRXOLR4JHCG=PU4WkTPJkShEne-gBXuaXE604NAeQ78h0A@mail.gmail.com> <501CE24F.5070203@tpf.co.jp> <CA+hybRWRUhOQ4YyNPvnH6PaPDf3QpaFgB8NoDRZnG4ry8rbdfg@mail.gmail.com> <5020F33F.20209@tpf.co.jp> <CA+hybRU0expO0Ndpt23pnHQJYkoza5qY4OKuJ=C-H=0KDaN2xw@mail.gmail.com> <5021617F.4080003@tpf.co.jp>

* 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