【问题标题】:Change domain name through browser - Windows Authentication - SID History通过浏览器更改域名 - Windows 身份验证 - SID 历史记录
【发布时间】:2018-11-15 09:27:59
【问题描述】:

我们遇到了与另一个组织合并的情况,作为其中的一部分,我们的 sid 历史记录已迁移到新的公共活动目录。

但是,我们的理解是,当我们使用这种方法时,作为 sid 历史迁移的一部分 httpcontext.current.identity.name 由于 sid 历史记录,即使您使用新域名登录 PC,它也会返回旧域名

我们正在使用 Internet Explorer,返回的凭据用于新域,例如而不是 abc\d(旧域),而是返回 def\d(新域)。

我们在这里做错了什么或者可以做些什么来解决这个问题?我们在带有 Windows Server 2016 的 IIS 10 上使用 IIS Windows 身份验证。

我们一直在使用 Quest Migration 工具。

我们可以启用某些东西而不是更改代码吗?

【问题讨论】:

  • 这个问题不清楚。你能解释一下你想做什么吗?
  • 我们的应用程序需要 abc\username,但由于用户现在已迁移到新域,我提到的代码现在返回 def\username。有没有办法通过 sidhistory 或其他方式返回 abc\username?

标签: iis iis-7.5 windows-authentication sid


【解决方案1】:

httpcontext.current.identity.name 命令基于身份验证。在您的情况下,Windows 身份验证。这意味着它将显示谁当前已登录。而不是过去在历史上的某个任意时间点谁曾登录。

来源: https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext.user?redirectedfrom=MSDN&view=netframework-4.7.2#System_Web_HttpContext_User

另请参阅: How does HttpContext.Current.User.Identity.Name know which usernames exist?

【讨论】:

    猜你喜欢
    • 2016-08-24
    • 2020-04-17
    • 2019-04-30
    • 1970-01-01
    • 2016-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-14
    相关资源
    最近更新 更多