Mike Oara

Mike Oara

  • NA
  • 5
  • 1.5k

How do I connect to ORACLE using Kerberos authentication?

Nov 9 2022 7:16 PM

I have no problem connectiong to ORACLE using the classic default authentication user/password. In such a case, I use a connection string like 

 string conn = "User Id=mike;Password=\"mike\";Data Source=localhost:1521/oraservice;Pooling = false;Connection Timeout=60;";

I attempted to find information about how to connect via Kerberos, without luck. Somewhere I saw that there may be another parameter in the string, called Integrated Security = yes. However, when I try to use it, I get the message that it is an invalid parameter.

I am also sure I have to somehow pass the paths to these two Kerberos file

Configuration File: krb5.conf
Cache File: KRB5cc_<userid>

Anybody had experience with Oracle/Kerberos access in C#?


Answers (1)