0

How do I create a JDBC DataSource in an OpenLDAP server?

The problem is that jdbc/something is not a valid DN or RDN. But that is the format of the name that you are supposed to use for JDBC DataSources.

This is for an Oracle database, though I would also want to do it for Postgresql and other RDBMSs.

Robin Green
  • 451
  • 3
  • 11

2 Answers2

1

This article has all the steps for connecting a JDBC Datasource to LDAP Server:

LDAP Syntax:

jdbc:oracle:drivertype:user/password@//ldap.domain.com:port/service_name

colealtdelete
  • 6,009
  • 1
  • 29
  • 34
  • Thanks - but it doesn't explain what this URL format means. In this example: `jdbc:oracle:thin:@ldap://ldap.acme.com:7777/sales,cn=OracleContext,dc=com` what does the `sales,` part of the URL mean? It is not a Distinguished Name or Relative Distinguished Name, as far as I know. – Robin Green Jul 23 '13 at 07:22
  • sales is the net service name stored in LDAP – ALex_hha Jul 23 '13 at 07:54
  • And where are the credentials? – icalvete Feb 20 '20 at 17:59
0

See Oracle Database Name Resolution with OpenLDAP.

Robin Green
  • 451
  • 3
  • 11