Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGkap-0006mT-KQ for pgsql-jdbc@arkaria.postgresql.org; Fri, 02 Jun 2017 11:18:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGkap-0001tH-2U for pgsql-jdbc@arkaria.postgresql.org; Fri, 02 Jun 2017 11:18:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGkUd-0000pR-RS for pgsql-jdbc@postgresql.org; Fri, 02 Jun 2017 11:11:48 +0000 Received: from smtp0.infosecservice.ru ([193.138.82.47]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGkUZ-0005VC-HX for pgsql-jdbc@postgresql.org; Fri, 02 Jun 2017 11:11:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=open.ru; i=@open.ru; q=dns/txt; s=global; t=1496401903; x=1527937903; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=bQJixA1oElvxvy/lnfe4r55KoH1EUoN9TImjONs9Zik=; b=Xicdvp9/TkWfRAVpCX9FFUnCPkPvee/uOZf39svaCiuOBORO+1kErocU OAabje69jClU+FM3Ypm71yHclBgXd963grpMKwTwu+LIdrVztqn5Fn4CX +k89cvxOTiqJkzNaxsEmstIaJytlAzlGkz6p79npQ5lG5iJBNXlQMKgIW 16kUTyYSDYYpzfjtG7PTdpLwZzlDfrek4M31jzsUoRuMt30lJ6dRFkDfj M0KYL+UU2Y8eUKF4gssyVQHoItFKrgUhRyZTzckiqRQwJuQrpSr1JxAt8 WtlojN5JFcRzjfrRRmX0o3n3K/1DQFgUdjjiH+yJERJmnrqYTyPF+kg9F g==; From: =?koi8-r?B?7KPTyc4g5dfHxc7JyiDhzsTSxcXXyd4=?= To: "pgsql-jdbc@postgresql.org" Subject: Error while connecting postgres db with Kerberos autentification Thread-Topic: Error while connecting postgres db with Kerberos autentification Thread-Index: AdLbj2uTD2NLzIG8QjGoHOQSXZw+PA== Date: Fri, 2 Jun 2017 11:11:35 +0000 Message-ID: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Content-Type: multipart/alternative; boundary="_000_a7db10e3b2b64904b381fc1f58d09bcbrumskxmp202openru_" MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --_000_a7db10e3b2b64904b381fc1f58d09bcbrumskxmp202openru_ Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable * 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 tryi= ng 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 pg= jdbc 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 12= 3 Where should I create "pgjdbc" or "123" for DBeaver to understand what I wa= nt? I know the problem is in jdbc driver. BUT we have it working on our prod se= rvers. We have a file, which has this in it: pgjdbc { com.sun.security.auth.module.Krb5LoginModule required doNotPrompt=3Dtrue useTicketCache=3Dtrue renewTGT=3Dtrue debug=3Dtrue client=3Dtrue; }; and everything works! =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =EC=A3=D3=C9=CE =E5=D7=C7=C5=CE=C9=CA =E7=CC=C1=D7=CE=D9=CA =D3=D0=C5=C3=C9=C1=CC=C9=D3=D4 =D3=CC=D5=D6=C2=D9 =F3= =E4=E2=EF =E6=EC, =E9=E2 <=EF=D4=CB=D2=D9=D4=C9=C5 =EF=CE=CC=C1=CA=CE> =F7=CE. 18-6734 =ED=CF=C2. +7 900 312 22 20 --_000_a7db10e3b2b64904b381fc1f58d09bcbrumskxmp202openru_ Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
  • 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 Engl= ish.
DB is configured to except connections only with ssl and kerberos. I'm tryi= ng to connect tj this DB with my AD user and get this error:

GSS Authentica= tion failed
javax.security.auth.login.LoginException: No LoginModules configured for pg= jdbc

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

GSS Authenticatio= n failed
javax.security.auth.login.LoginException: No LoginModules configured for 12= 3

Where should I cr= eate "pgjdbc" or "123" for DBeaver to understand what I= want?

 

I know the problem is in jdbc d= river. BUT we have it working on our prod servers.

We have a file, which has this = in it:

 

pgjdbc {

com.sun.security.auth.module.Kr= b5LoginModule required

doNotPrompt=3Dtrue

useTicketCache=3Dtrue

renewTGT=3Dtrue

debug=3Dtrue<= /p>

client=3Dtrue;

};

 

and everything works!

 

 

 

=F3 =D5=D7=C1=D6= =C5=CE=C9=C5=CD,

=EC=A3=D3=C9=CE = =E5=D7=C7=C5=CE=C9=CA

=E7=CC=C1=D7=CE= =D9=CA =D3=D0=C5=C3=C9=C1=CC=C9=D3=D4 =D3=CC=D5=D6=C2=D9 =F3=E4=E2=EF =E6= =EC, =E9=E2 «=EF=D4=CB=D2=D9=D4=C9=C5 =EF=CE= =CC=C1=CA=CE»

=F7= =CE. 18-6734

=ED= =CF=C2. +7 900 312 22 20

 

--_000_a7db10e3b2b64904b381fc1f58d09bcbrumskxmp202openru_--