pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Error while connecting postgres db with Kerberos autentification
4+ messages / 3 participants
[nested] [flat]

* Error while connecting postgres db with Kerberos autentification
@ 2017-06-02 11:11  Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
  0 siblings, 1 reply; 4+ messages in thread

From: Лёсин Евгений Андреевич @ 2017-06-02 11:11 UTC (permalink / raw)
  To: pgsql-jdbc

  *   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!



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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Error while connecting postgres db with Kerberos autentification
@ 2017-06-02 11:20  Dave Cramer <pg@fastcrypt.com>
  parent: Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
  0 siblings, 1 reply; 4+ messages in thread

From: Dave Cramer @ 2017-06-02 11:20 UTC (permalink / raw)
  To: Лёсин Евгений Андреевич <Evgeniy.Lesin@open.ru>; +Cc: pgsql-jdbc

On 2 June 2017 at 07:11, Лёсин Евгений Андреевич <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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Error while connecting postgres db with Kerberos autentification
@ 2017-06-02 11:28  Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
  parent: Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Лёсин Евгений Андреевич @ 2017-06-02 11:28 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: Error while connecting postgres db with Kerberos autentification
@ 2017-06-02 17:59  Bear Giles <bgiles@coyotesong.com>
  parent: Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
  0 siblings, 0 replies; 4+ messages in thread

From: Bear Giles @ 2017-06-02 17:59 UTC (permalink / raw)
  To: Лёсин Евгений Андреевич <Evgeniy.Lesin@open.ru>; +Cc: Dave Cramer <pg@fastcrypt.com>; pgsql-jdbc

You need to specify the location of the JAAS config file that contains the
information you provided. I'm drawing a complete blank on the default
location or the system property to set to specify it but you can probably
find it with a quick stack overflow search for 'jaas'.

On Fri, Jun 2, 2017 at 5:28 AM, Лёсин Евгений Андреевич <
Evgeniy.Lesin@open.ru> wrote:

> 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*
>
>
>
> What is “pgjdbc”?
>
>
>
>
>
> С уважением,
>
> Лёсин Евгений
>
> Главный специалист службы СДБО ФЛ, ИБ «Открытие Онлайн»
>
> Вн. 18-6734
>
> Моб. +7 900 312 22 20 <+7%20900%20312-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>
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-06-02 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02 11:11 Error while connecting postgres db with Kerberos autentification Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
2017-06-02 11:20 ` Dave Cramer <pg@fastcrypt.com>
2017-06-02 11:28   ` Лёсин Евгений Андреевич <Evgeniy.Lesin@OPEN.RU>
2017-06-02 17:59     ` Bear Giles <bgiles@coyotesong.com>

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