Re: Error while connecting postgres db with Kerberos autentification

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Лёсин Евгений Андреевич <Evgeniy(dot)Lesin(at)open(dot)ru>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Error while connecting postgres db with Kerberos autentification
Date: 2017-06-02 11:20:52
Message-ID: CADK3HH+buPBygDzfgCw_FPnsuObC6oLByMwszaxtGxk+EL4ZKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Лёсин Евгений Андреевич 2017-06-02 11:28:09 Re: Error while connecting postgres db with Kerberos autentification
Previous Message Лёсин Евгений Андреевич 2017-06-02 11:11:35 Error while connecting postgres db with Kerberos autentification