SharePoint FBA 和自定义数据 - SharePoint 2010

发布于 2024-12-02 07:19:35 字数 618 浏览 4 评论 0原文

我这样做对吗?

我有一个客户,他们目前有一个供用户使用的门户,他们的所有用户都在 Oracle 数据库中。他们想要迁移到 SharePoint 2010。

用户将通过他们的用户名和密码登录到该网站,我需要从他们现有的数据库中迁移这些信息。用户还拥有帐户信息,我需要从 Oracle 中的现有数据库(通过从 Web 前端到 Oracle 数据库的 VPN 隧道)查询这些信息。

  1. 用于用户认证; ASP.NET 会员 - 我尝试将我的应用程序配置为在 FBA 下运行。 aspnet_regsql.exe 应用程序在我的数据库(以及一大堆其他数据库)中创建了用户和角色表。我需要添加 account_id(这是客户端数据库的外键)以及名字和姓氏(我们将存储并需要在应用程序中显示它们)。

在哪里创建 account_id 和其他需要与用户关联的字段?

ASPNET 配置文件表与 API 中的 SharePoint 配置文件表相同吗?我如何填充这个数据库来尝试?

通过IIS?我是否需要编写自定义注册 Web 部件,或者我可以以某种方式将自定义列添加到配置文件并在可视 Web 部件中重新配置 ASP.NET 用户注册控件吗?

预先感谢您的帮助!

Am I doing this right?

I have a client, they currently have a portal for their users, all their users are in an oracle database. They want to move to SharePoint 2010.

The user will log into the site via their username and password, which I will need to migrate from their existing database. The users also have account information, which I'll need to query FROM their existing database in Oracle (over a VPN tunnel from the web front end to their Oracle DB).

  1. For the user authentication;
    ASP.NET Membership -
    I tried to configure my application to run under FBA. The aspnet_regsql.exe application created Users and Roles tables in my database (and a whole bunch of other ones). I need to add account_id, which is a foreign key to the client's database, and firstname, last name, which we'll store and need to surface on our application.

Where to I create the account_id and other fields that need to be associated to the user?

Is the ASPNET Profile table the same as the SharePoint Profile from the API? How do I populate this database to try?

Through IIS? Do I need to write a custom registration webpart, or can I somehow add custom columns to the profile and reprovision the ASP.NET user registration control in a visual webpart?

Thanks in advance for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寄居人 2024-12-09 07:19:35
  1. ASPNet 配置文件表与 SharePoint 配置文件不同。 SharePoint 配置文件被分配了自己的数据库,因此更加强大,因为 ASPNET 配置文件在一行中包含单个用户的所有属性名称/值,这并不是最好的选择。
  2. 您可以使用 IIS 来填充用户/角色,但您需要不断更改默认角色和成员资格提供程序。一种方法允许您添加用户和角色,但不允许您登录 SharePoint。另一个反之亦然。您可以为配置文件创建属性并为其分配默认值,但我不相信您可以逐个用户地设置它们,但我不会发誓。我在 codeplex 上找到了这个用于 FBA 管理的工具,但还没有时间测试它。
  3. 我还试图找出 FBA/用户配置文件问题。 SharePoint 足够智能,可以为 Windows 帐户创建配置文件。我希望一旦创建了 FBA 提供程序,它将从 FBA 提供程序中提取用户名和基本信息,并创建 SharePoint 配置文件,以便我可以使用 UserProfileManager 从 SharePoint 配置文件数据库访问/存储基于配置文件的信息。看起来您可以配置用户配置文件服务以与其他源同步,这就是我在有更多空闲时间后要研究的内容。
  1. The ASPNet profile table is not the same as the SharePoint Profile. The SharePoint Profiles are assigned their own database thus much more robust where as theASPNET profile contains all of the propertynames/values for a single user in a single row, not really the best deal.
  2. Your can use IIS to populate the users/roles, but you need to keep changing the Default Role and Membership providers. One way will let you add users and roles, but not let you log into SharePoint. The other vice versa. You can create the properties for the profile and assign them default values but I don't beleive you can set them on a user by user basis, I won't swear to that though. I found this tool on codeplex for FBA management but have not had time to test it yet.
  3. I am also trying to figure out the FBA/user profile question. SharePoint is smart enough to create profiles for Windows accounts. I am hoping that once the providers for FBA are created it will pull the users name and basic info from the FBA provider and create SharePoint profiles as well so that I can use the UserProfileManager to access/store profile based information from the SharePoint profile database. It looks like you can configure the User Profile Service to sync with other sources, thats what I am going to investigate once I have some more free time.
无力看清 2024-12-09 07:19:35

尝试新的 ASP.Net 身份系统。
ASP.NET 身份简介

自定义用户配置文件以在全新数据库表中添加新字段 这里

try the new ASP.Net Identity System.
Introduction to ASP.NET Identity
and
Customizing User's Profile to add new fields in brand new database table here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文