Hibernate version: 1.2.0
Did NHibernate OracleDataClientDriver support Oracle LDAP server?
We have some trouble to connect to a database base managed by an Oracle Internet Directory.
Usualy, in the connection string we use the Tns name of the service but, with Oracle ldap the Service names are uniquely identified by Distinguished Names (DNs) in OID.
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.OracleDialect</property>
<property name="default_schema">Schema_name</property>
<property name="show_sql">true</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property>
<property name="connection.connection_string"><![CDATA[user ID=uid;Password=psw;Data Source=TNS Service Name]]></property>
<mapping assembly="our Assembly" />
</session-factory>
</hibernate-configuration>
In java i saw that we can use driver like:
LDAP syntax Thin
"jdbc:oracle:thin:@ldap://ldap.acme.com:7777/sales,cn=OracleContext,dc=com"
or, when using SSL:
"jdbc:oracle:thin:@ldaps://ldap.acme.com:7777/sales,cn=OracleContext,dc=com"
|