I'm attempting to use the Oracle Managed Driver (v3.21.41) in a dotnet core project. I'm trying to get the driver to connect via LDAP, but it seems to always want to try (and fail) with TNS.
OracleConfiguration.DirectoryServers = "(oidserver:3060)";
OracleConfiguration.DirectoryServerType = "OID";
OracleConfiguration.DefaultAdminContext = "cn=OracleContext,dc=co,dc=company,dc=com";
OracleConfiguration.NamesDirectoryPath = "(LDAP)";
OracleConnection conn = new OracleConnection("Data Source=SERVERYO; User Id=usr; Password=pwd");
conn.Open();
I'm wondering if I am missing some property of OracleConfiguration for it actually try to use LDAP to resolve the server name. When I run this code I always get a TNS error:
'ORA-12154: TNS:could not resolve the connect identifier specified'