BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: anushaumapathi(at)gmail(dot)com
Subject: BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS
Date: 2024-02-06 09:20:55
Message-ID: 18335-95f70a4680ab25a8@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18335
Logged by: Anu K
Email address: anushaumapathi(at)gmail(dot)com
PostgreSQL version: 16.0
Operating system: Windows
Description:

Hello,

I need to connect to Postgres through a JDBC connection in Kerberos mode.
This is successful only using the JAAS configuration file. Is there way
without using the JAAS conf file I can set
this property in the program that are listed in JAAS conf file.
My required is not to profile the static JAAS file instead I need to send
the properties.
The tickecache and just the login module?
Properties properties = new Properties();
properties.setProperty("cache",
"C:\\temp\\postgresk\\krb5cache");
properties.setProperty("loginmodule",
"com.sun.security.auth.module.Krb5LoginModule");
pgjdbc {
com.sun.security.auth.module.Krb5LoginModule required
debug=true
refreshKrb5Config=true
doNotPrompt=true
useTicketCache=true
useKeyTab=false
client=true
ticketCache="C:\\temp\\postgresk\\krb5cache";
};

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Cramer 2024-02-06 10:45:46 Re: BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS
Previous Message Arnd Baranowski 2024-02-06 08:07:31 Re: PostgreSQL & latest Mac OS Sonoma, a possible bug / configuration issue