从基于表单的身份验证迁移到基于声明的身份验证 (SharePoint Server 2010)

 

适用于: SharePoint Foundation 2010, SharePoint Server 2010

上一次修改主题: 2016-11-30

本文中的过程所提供的指导可帮助迁移现有 Microsoft Office SharePoint Server 2007 Web 应用程序(配置为使用基于表单的身份验证),以在 Microsoft SharePoint Server 2010 环境中用作基于声明的 Web 应用程序。

升级至 SharePoint Server 2010 后,升级的 Web 应用程序会保留 Office SharePoint Server 2007 应用程序使用的登录方法。配置为使用 Windows 身份验证的 Office SharePoint Server 2007 Web 应用程序不需要其他步骤便可升级。但是,必须将配置为使用基于表单的身份验证的 Office SharePoint Server 2007 Web 应用程序转换为使用基于声明的身份验证,Office SharePoint Server 2007 Web 应用程序才能在 SharePoint Server 2010 中使用。将 Office SharePoint Server 2007 Web 应用程序转换为基于声明的身份验证后,请为基于表单的身份验证配置 Web 应用程序区域。最后,请将用户和权限迁移到 SharePoint Server 2010。本文提供以下过程来完成 Web 应用程序迁移:

  • 将使用基于表单的身份验证的 SharePoint Server 2007 Web 应用程序转换为使用基于声明的身份验证

  • 将用户和权限从 SharePoint Server 2007 中迁移到 SharePoint Server 2010

将使用基于表单的身份验证的 SharePoint Server 2007 Web 应用程序转换为使用基于声明的身份验证

执行以下过程中的步骤,以使用 Windows PowerShell 将现有 Web 应用程序转换为基于声明的身份验证。

将 Web 应用程序转换为基于声明的身份验证

  1. 确认您满足以下最低要求:请参阅 Add-SPShellAdmin

  2. 在“开始”菜单上,单击“所有程序”。

  3. 单击“Microsoft SharePoint 2010 产品”。

  4. 单击“SharePoint 2010 Management Shell”。

  5. 在 Windows PowerShell 命令提示符处,键入以下内容:

    $w = Get-SPWebApplication "http://<server>/"
    $w.UseClaimsAuthentication = 1
    $w.Update()
    
    $w.ProvisionGlobally()
    

备注

我们建议您在执行命令行管理任务时使用 Windows PowerShell。Stsadm 命令行工具已被弃用,仍然包含该工具是为了支持与之前产品版本的兼容性。

将用户和权限从 SharePoint Server 2007 中迁移到 SharePoint Server 2010

执行以下过程中的步骤,以使用 Windows PowerShell 迁移用户和权限。

将用户和权限从 SharePoint Server 2007 中迁移到 SharePoint Server 2010

  1. 确认您满足以下最低要求:请参阅 Add-SPShellAdmin

  2. 在“开始”菜单上,单击“所有程序”。

  3. 单击“Microsoft SharePoint 2010 产品”。

  4. 单击“SharePoint 2010 Management Shell”。

  5. 在 Windows PowerShell 命令提示符处,键入以下内容:

    $w = Get-SPWebApplication "http://<server>/"
    $w.MigrateUsers($True)
    

备注

我们建议您在执行命令行管理任务时使用 Windows PowerShell。Stsadm 命令行工具已被弃用,仍然包含该工具是为了支持与之前产品版本的兼容性。

See Also

Concepts

为基于声明的 Web 应用程序配置基于表单的身份验证 (SharePoint Server 2010)