pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JBDC LDAP support
3+ messages / 3 participants
[nested] [flat]

* JBDC LDAP support
@ 2014-07-18 19:53  John Neal <john.neal@fedex.com>
  0 siblings, 2 replies; 3+ messages in thread

From: John Neal @ 2014-07-18 19:53 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>

Does the postgres JDBC driver include LDAP support? I was able to get psql to connect via LDAP using pg_service.conf (so I can confirm that the LDAP entry is correct), but a majority of our applications use jdbc to connect.

For example, normally our java apps would connect to Oracle with a url like this:
jdbc:oracle:thin:@ldap://oid.myserver.com/ABC_APP_L3,cn=OracleContext

However, I'm not able to find a way to accomplish similar with postgres. I've confirmed that the driver (postgresql-9.3-1102.jdbc4.jar) works when specifying the hostname, dbname, and port. When using LDAP, this is what I would expect, but it doesn't work.
jdbc:postgresql:@ldap:// oid.myserver.com/ ABC_APP_L3,cn=PostgresContext

I'd appreciate any advice.


John Neal

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

* Re: JBDC LDAP support
@ 2014-07-20 03:09  Gerald Cheves <gcheves@verizon.net>
  parent: John Neal <john.neal@fedex.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Gerald Cheves @ 2014-07-20 03:09 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>

Hi John,

There is LDAP authentication in PostgreSQL.

Check out the PostgreSQL Documentation, section 19.3.8 
http://www.postgresql.org/docs/9.3/static/auth-methods.html
and https://wiki.postgresql.org/wiki/LDAP_Authentication_against_AD


- Gerald
On 7/18/2014 3:53 PM, John Neal wrote:
>
> Does the postgres JDBC driver include LDAP support? I was able to get 
> psql to connect via LDAP using pg_service.conf (so I can confirm that 
> the LDAP entry is correct), but a majority of our applications use 
> jdbc to connect.
>
> For example, normally our java apps would connect to Oracle with a url 
> like this:
>
> jdbc:oracle:thin:@ldap://oid.myserver.com/ABC_APP_L3,cn=OracleContext
>
> However, I'm not able to find a way to accomplish similar with 
> postgres. I've confirmed that the driver 
> (postgresql-9.3-1102.jdbc4.jar) works when specifying the hostname, 
> dbname, and port. When using LDAP, this is what I would expect, but it 
> doesn't work.
>
> jdbc:postgresql:@ldap:// oid.myserver.com/ ABC_APP_L3,cn=PostgresContext
>
> I'd appreciate any advice.
>
> John Neal
>


-- 
siamo arrivati sani e salvi

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

* Re: JBDC LDAP support
@ 2014-07-21 07:52  Albe Laurenz <laurenz.albe@wien.gv.at>
  parent: John Neal <john.neal@fedex.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Albe Laurenz @ 2014-07-21 07:52 UTC (permalink / raw)
  To: John Neal *EXTERN* <john.neal@fedex.com>; pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>; +Cc: pgsql-jdbc

CC: to pgsql-jdbc

John Neal wrote:
> Does the postgres JDBC driver include LDAP support? I was able to get psql to connect via LDAP using
> pg_service.conf (so I can confirm that the LDAP entry is correct), but a majority of our applications
> use jdbc to connect.
> 
> For example, normally our java apps would connect to Oracle with a url like this:
>
> jdbc:oracle:thin:@ldap://oid.myserver.com/ABC_APP_L3,cn=OracleContext
> 
> However, I’m not able to find a way to accomplish similar with postgres. I’ve confirmed that the
> driver (postgresql-9.3-1102.jdbc4.jar) works when specifying the hostname, dbname, and port. When
> using LDAP, this is what I would expect, but it doesn’t work.
> 
> jdbc:postgresql:@ldap:// oid.myserver.com/ ABC_APP_L3,cn=PostgresContext
> 
> I’d appreciate any advice.

I think you are referring to this functionality:
http://www.postgresql.org/docs/current/static/libpq-ldap.html

This is part of the libpg shared library, and the JDBC driver does not use libpq.

Unfortunately the JDBC driver does not support a similar functionality, although
I think it would certainly be a nice thing to add.

Yours,
Laurenz Albe

-- 
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice


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


end of thread, other threads:[~2014-07-21 07:52 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-07-18 19:53 JBDC LDAP support John Neal <john.neal@fedex.com>
2014-07-20 03:09 ` Gerald Cheves <gcheves@verizon.net>
2014-07-21 07:52 ` Albe Laurenz <laurenz.albe@wien.gv.at>

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