Oracle on Linux with Windows ASP.NET Authentication Impersonation

Can someone direct me on how to do this, for example, I have a Windows Server with ASP.NET pages and you want to transfer these credentials using integrated Windows authentication to a Linux-based Oracle database.

+5
source share
1 answer

You can try to put

  <system.web>
    <identity impersonate="false" />

In web.config. This should send the end user credentials through the database. If this is not what you want, try something like

ImpersonableWebRequest request = WebRequest.Create(url);

CredentialCache creds = new CredentialCache();
NetworkCredential networkCredential = new NetworkCredential("bob", "130B", "domain");
creds.Add(new Uri(url), authType, networkCredential);   

request.Credentials = creds;
0
source

All Articles