JBDC LDAP support for connection parameters

Поиск
Список
Период
Сортировка
От John Neal
Тема JBDC LDAP support for connection parameters
Дата
Msg-id 77E6F1BFB524D44E97EAD7836AC9ECDB4376A0B0@PWN60112.corp.ds.fedex.com
обсуждение исходный текст
Ответы Re: JBDC LDAP support for connection parameters  (Sehrope Sarkuni <sehrope@jackdb.com>)
Список pgsql-jdbc

Does the postgres JDBC driver include LDAP support for connection parameters? I was able to get psql to connect with the parameters stored in 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.

 

This is the document I used to configure with pg_service.conf, but I can’t find anything on doing something similar with JDBC:

http://www.postgresql.org/docs/9.1/static/libpq-ldap.html

 

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, but I need it to function with LDAP. 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: CG
Дата:
Сообщение: Re: Upgrade to Scientific Linux 6.5 x86_64 breaks query
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Upgrade to Scientific Linux 6.5 x86_64 breaks query