是否有人尝试使用基于表单的身份验证 (FBA) 将 SharePoint Web 应用程序备份到另一台 SharePoint 服务器?
我们在基于 FBA 的共享点 Web 应用程序的备份/恢复方面面临一些问题:
- 我们有一台服务器,我们在其中创建了一个基于 FBA 的 Web 应用程序,它也有一个 FBA 数据库。
- 我们已将FBA数据库备份到新服务器。
- 我们尝试备份 Web 应用程序并将其恢复到新服务器。
- 我们更改了身份验证设置并为 FBA 创建了 web.config 条目。
- 访问该网站时,我能够登录该网站并查看所有内容。 但是,当我在对象模型中使用此函数时,无论我登录哪个用户,它总是返回 false:
SPContext.Current.Web.DoesUserHavePermissions(
SPContext.Current.Web.RoleDefinitions["Read "].BasePermissions).ToString()
以前有人遇到过这样的问题吗?
有人尝试过备份基于 FBA 的 Web 应用程序吗?
我们恢复到了位于不同域中的不同服务器场 - 这会产生任何影响吗?
Has anyone tried to back up a SharePoint web application using forms based authentication (FBA) to another SharePoint server?
We are facing some issues in backup\restore of FBA based sharepoint web applications:
- We have a server where we have created a web application based on FBA, it has an FBA database as well.
- We have backed up the FBA database to the new server.
- We tried to backup the web application and restore it to a new server.
- We changed the authentication settings and made web.config entries for FBA.
- When accessing the site, I was able to login to the site and see all the content. But when I use this function in the object model it always returns false no matter which user I logged in to:
SPContext.Current.Web.DoesUserHavePermissions(
SPContext.Current.Web.RoleDefinitions["Read "].BasePermissions).ToString()
Has anyone faced issues like this before?
Has anyone tried to back up an FBA based Web Application?
We did the restore to a different farm that resides in a different domain - will this have any effect?
发布评论
评论(2)
我已成功备份和还原启用 FBA 的 SharePoint 应用程序的数据库和 SharePoint Web 应用程序。
您列出的步骤对我来说似乎是正确的,但您确定您已正确完成这些步骤吗?
特别是第 5 步:您需要确保已正确更改管理中心站点的设置和 Web 应用程序配置设置(web.config 设置以及将应用程序扩展到新区域并启用 FBA)。 仔细检查您是否已按照原始应用程序配置了所有内容。
另一件需要检查的事情是您的自定义角色定义“Admin”是否确实存在。 我认为它确实并且应该已成功备份/恢复,但值得检查。
我做的不同的一件事是移动内容数据库(而不是通过管理中心或 STSADM 进行备份/恢复)。 我认为这不会有任何区别,但它对我有用。
I have managed to successfully backup and restore both the database and SharePoint web application for an FBA-enabled SharePoint application.
The steps you've listed seem correct to me but are you sure that you've completed them correctly?
Particularly step 5: you need to ensure that you've correctly changed settings for the Central Administration site and your web applications configuration settings (web.config settings and extending the application to a new zone and enabling FBA). Double check that you've configured everything as per the original application.
Another thing to check is that you've custom role definition "Admin" actually exists. I assume it does and should have been backed up/restored successfully, but it's worth checking.
One thing that I did differently was to move the content database (instead of backup/restore through Central Administration or STSADM). I don't think this should make any difference, but it worked for me.
好吧,我缩小了问题范围。 请参阅文章介绍了它的内容
休息。
Well I narrowed down the Issue. Please refer to the article on what was making it to
break.