From: Gerald Cheves <gcheves@verizon.net>
To: pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>
Subject: Re: JBDC LDAP support
Date: Sat, 19 Jul 2014 23:09:24 -0400
Message-ID: <53CB32E4.6060700@verizon.net> (raw)
In-Reply-To: <77E6F1BFB524D44E97EAD7836AC9ECDB43759F6A@PWN60112.corp.ds.fedex.com>
References: <77E6F1BFB524D44E97EAD7836AC9ECDB43759F6A@PWN60112.corp.ds.fedex.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-novice>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: gcheves@verizon.net, pgsql-novice@postgresql.org
Subject: Re: JBDC LDAP support
In-Reply-To: <53CB32E4.6060700@verizon.net>
References: <77E6F1BFB524D44E97EAD7836AC9ECDB43759F6A@PWN60112.corp.ds.fedex.com> <53CB32E4.6060700@verizon.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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