asp.net - 带有 ASP.NET Windows 身份验证模拟的 Linux 上的 Oracle

标签 asp.net oracle

有人可以指导我如何进行这种类型的设置,即我有一个带有 ASP.NET 页面的 Windows 服务器,并希望使用集成 Windows 身份验证将这些凭据传递给基于 Linux 的 Oracle 数据库。

最佳答案

你可以试试把

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

在 web.config 中。这应该将最终用户的凭据发送到数据库。如果这不是你想要的,那么试试像
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;

关于asp.net - 带有 ASP.NET Windows 身份验证模拟的 Linux 上的 Oracle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2871352/

相关文章:

sql - Oracle:在为多列表更新一个字段时复制行

mysql - 如果不使用另一个表作为 'SELECT' 语句,则检查表是否存在

mysql - 计算两个字段之和之间的差异

oracle - 根据一天中的时间进行选择

c# - 如何解决错误 : failed due to the following error: 80040154 Class not registered

javascript - 在文本框中按下 Enter 键时,重定向到 page.aspx

asp.net - 对 maxJsonLength 默认值的混淆

c# - 如何在 Msbuild 中调用第二个目标

c# - 是否首先调用母版页?

oracle - WebSphere 到 Oracle - 不接受正确的密码