OS Authentication with Entity Framework
Posted: Mon 26 Jul 2010 12:01
Hi,
I have successfuly used dot connect 4.75 in direct mode for an application with the use of Entity Framework. Hower the application must now be modified so that the connection must be done via OS authentication, and I don't know exactly how to achive that. From what I understand in the documentation, I only have to :
1) Use an external client to connect through OCI. But what is that ? Is ODAC from Oracle enough on the client computer for that ?
2) modify the connection string. But what is the connection string syntax ? For example in direct mode I have :
"User Id=bob;Password=bobpwd;Server=someServer;Direct=True;Sid=someService;"
How must be the connection string in non direct mode for OS authentication ? If I specify something like :
"Data Source=someService;Persist Security Info=True" I have a connection error, telling me that the user or password provided are wrong,
and if I specify something like :
"User Id=/;Data Source=someService;" I have a connection error, telling me that I must provide a password.
What is the correct way to achive that ?
Thank you.
I have successfuly used dot connect 4.75 in direct mode for an application with the use of Entity Framework. Hower the application must now be modified so that the connection must be done via OS authentication, and I don't know exactly how to achive that. From what I understand in the documentation, I only have to :
1) Use an external client to connect through OCI. But what is that ? Is ODAC from Oracle enough on the client computer for that ?
2) modify the connection string. But what is the connection string syntax ? For example in direct mode I have :
"User Id=bob;Password=bobpwd;Server=someServer;Direct=True;Sid=someService;"
How must be the connection string in non direct mode for OS authentication ? If I specify something like :
"Data Source=someService;Persist Security Info=True" I have a connection error, telling me that the user or password provided are wrong,
and if I specify something like :
"User Id=/;Data Source=someService;" I have a connection error, telling me that I must provide a password.
What is the correct way to achive that ?
Thank you.