pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS
2+ messages / 2 participants
[nested] [flat]

* BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS
@ 2024-02-06 09:20 PG Bug reporting form <noreply@postgresql.org>
  2024-02-06 10:45 ` Re: BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS Dave Cramer <davecramer@postgres.rocks>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2024-02-06 09:20 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: anushaumapathi@gmail.com

The following bug has been logged on the website:

Bug reference:      18335
Logged by:          Anu K
Email address:      anushaumapathi@gmail.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";
};



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

* Re: BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS
  2024-02-06 09:20 BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS PG Bug reporting form <noreply@postgresql.org>
@ 2024-02-06 10:45 ` Dave Cramer <davecramer@postgres.rocks>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Cramer @ 2024-02-06 10:45 UTC (permalink / raw)
  To: anushaumapathi@gmail.com; pgsql-bugs@lists.postgresql.org

On Tue, 6 Feb 2024 at 04:33, PG Bug reporting form <noreply@postgresql.org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference:      18335
> Logged by:          Anu K
> Email address:      anushaumapathi@gmail.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";
> };
>

As far as I know that is the only way to use JAAS on windows.

Dave

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


end of thread, other threads:[~2024-02-06 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 09:20 BUG #18335: JDBC Postgress Kerberos authentication does'nt work without JAAS PG Bug reporting form <noreply@postgresql.org>
2024-02-06 10:45 ` Dave Cramer <davecramer@postgres.rocks>

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