pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Error while connecting postgres db with Kerberos autentification
Date: Fri, 2 Jun 2017 11:28:09 +0000
Message-ID: <08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru> (raw)
In-Reply-To: <CADK3HH+buPBygDzfgCw_FPnsuObC6oLByMwszaxtGxk+EL4ZKw@mail.gmail.com>
References: <a7db10e3b2b64904b381fc1f58d09bcb@rumskxmp202.open.ru>
	<CADK3HH+buPBygDzfgCw_FPnsuObC6oLByMwszaxtGxk+EL4ZKw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Sorry for confusing you.

When I try to connect to DB with DBeaver, which uses jdbc driver, error comes out:


GSS Authentication failed
javax.security.auth.login.LoginException: No LoginModules configured for pgjdbc
[cid:image001.png@01D2DBB4.CA5AF300]

What is “pgjdbc”?


С уважением,
Лёсин Евгений
Главный специалист службы СДБО ФЛ, ИБ «Открытие Онлайн»
Вн. 18-6734
Моб. +7 900 312 22 20

From: davecramer@gmail.com [mailto:davecramer@gmail.com] On Behalf Of Dave Cramer
Sent: Friday, June 02, 2017 3:21 PM
To: Лёсин Евгений Андреевич
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Error while connecting postgres db with Kerberos autentification



On 2 June 2017 at 07:11, Лёсин Евгений Андреевич <Evgeniy.Lesin@open.ru<mailto:Evgeniy.Lesin@open.ru>> wrote:

  *   JDBC driver build number - postgresql-42.1.1
  *   Server version – 9.5
  *   Exact error message and stacktrace - below
  *   What you were doing, ideally in code form



Sorry for my English.
DB is configured to except connections only with ssl and kerberos. I'm trying to connect tj this DB with my AD user and get this error:

GSS Authentication failed
javax.security.auth.login.LoginException: No LoginModules configured for pgjdbc

jaasAplicationName property in Driver properties is not set. If I change it, for example, to "123", then error changes to

GSS Authentication failed
javax.security.auth.login.LoginException: No LoginModules configured for 123

Where should I create "pgjdbc" or "123" for DBeaver to understand what I want?

I know the problem is in jdbc driver. BUT we have it working on our prod servers.
We have a file, which has this in it:

pgjdbc {
com.sun.security.auth.module.Krb5LoginModule required
doNotPrompt=true
useTicketCache=true
renewTGT=true
debug=true
client=true;
};

and everything works!


I am unclear. Do you have this working or not ?

Dave



Attachments:

image001.png (image/png, 76.5K) download view image

view thread (4+ messages)  latest in thread

Message-ID: <08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru>
Permalink:  ../08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru/
Also on:    postgresql.org/message-id/08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru

 · 

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: Evgeniy.Lesin@OPEN.RU, pg@fastcrypt.com
  Subject: Re: Error while connecting postgres db with Kerberos autentification
  In-Reply-To: <08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru>
  References: <a7db10e3b2b64904b381fc1f58d09bcb@rumskxmp202.open.ru> <CADK3HH+buPBygDzfgCw_FPnsuObC6oLByMwszaxtGxk+EL4ZKw@mail.gmail.com> <08512e98cea0489c9f7458c981ab18fb@rumskxmp202.open.ru>

* 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