pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dave Rosckes <dave.rosckes@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Trying to get SSPI/JDBC working
Date: Tue, 02 Dec 2014 12:40:41 -0800
Message-ID: <547E23C9.8060404@aklaver.com> (raw)
In-Reply-To: <CAEtyQx12UkS=wDFUTjwEVNggza_Oc8KMQBptRbdgj7-90=Ei8w@mail.gmail.com>
References: <CAEtyQx12UkS=wDFUTjwEVNggza_Oc8KMQBptRbdgj7-90=Ei8w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 12/02/2014 08:10 AM, Dave Rosckes wrote:
> I am new to Postgresql.  I have a postgres server running on a windows
> platform.  The DBs will not have any remote access, only users logged
> onto the localhost will have access.  SSPI seems like a great
> authentication protocol to use in this case.
>
> I believe I have followed all the instructions on how to get this to work:
>
> Postgresql: postgresql-9.3.4-4-windows-x64
>
> Updated pg_hba.conf to have the following lines:
> host    all             all 127.0.0.1/32
> <http://127.0.0.1/32;            sspi
> host    all             all             ::1/128                     md5
>
> Created role that matches userid via pgAdmin III
>
> JDBC connection url:
> "jdbc:postgresql://localhost/postgresDB?integratedSecurity=true"
> JDBC jar: postgresql-9.3-1100.jdbc4.jar
>
> Looking in the pglog all I see is:
>
> CST FATAL:  SSPI authentication failed for user "roscked"
> CST DETAIL:  Connection matched pg_hba.conf line 80: "host
> all             all 127.0.0.1/32 <http://127.0.0.1/32;            sspi"
>
> The exception I see:
>
> org.postgresql.util.PSQLException: GSS Authentication failed

Is there more to the exception, like maybe a traceback?

Is there anything in the Windows system logs that would help?

>
> Any guidance on how to get more information on the failure, or
> suggestion on what I am doing wrong would be greatly appreciated.


-- 
Adrian Klaver
adrian.klaver@aklaver.com


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



view thread (8+ messages)  latest in thread

Message-ID: <547E23C9.8060404@aklaver.com>
Permalink:  ../547E23C9.8060404@aklaver.com/
Also on:    postgresql.org/message-id/547E23C9.8060404@aklaver.com

 · 

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-jdbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, dave.rosckes@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Trying to get SSPI/JDBC working
  In-Reply-To: <547E23C9.8060404@aklaver.com>
  References: <CAEtyQx12UkS=wDFUTjwEVNggza_Oc8KMQBptRbdgj7-90=Ei8w@mail.gmail.com> <547E23C9.8060404@aklaver.com>

* 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