sharepoint 2010 User Profile Service 与AD用户数据同步

[转 http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/]

User Profile Service

Now that we have successfully configured our Managed Metadata service we can now focus our attention on the User Profile Service.  The User Profile Service provides our SharePoint farm with all the social networking features that we have come to love in SharePoint 2007, plus more.  It forms the basis of My Site support, User profile pages, Audiences and some of the newer features in SharePoint 2010 social computing such as social tagging.

Before we begin, we need to ensure that our Farm account (DOMAIN\sp_farm) is listed as a member of the Local Administrator’s group where the User Profile Synchronization (UPS) service will be deployed.  Please make a note to remove the DOMAIN\sp_farm account from the Local Administrator’s group after provisioning the User Profile Synchronization service.  Please also note, that if you ever have to re-provision the UPS service at a later date, that you will need to ensure the DOMAIN\sp_farm account is added back to the Local Administrator’s group.

Let’s now navigate to Central Administration / Application Management / Manage Service Applications.

Click New and select “User Profile Service Application”

image thumb58 Configuring the User Profile Service in SharePoint 2010

The “Create New User Profile Service Application” window pops up in which you will enter the following details; (you will obviously enter in the details based on your environment setup)

Name: User Profiles

Create new application pool: SharePoint – User Profiles

image thumb59 Configuring the User Profile Service in SharePoint 2010

Register a new managed account: e.g. DOMAIN\sp_userprofiles (nb: this account will need to be provisioned in Active Directory first)

image thumb60 Configuring the User Profile Service in SharePoint 2010

Enter your Profile Database server details and database authentication.  You will notice that SharePoint 2010 introduces the ability to configure Failover Server which allows you to associate your SharePoint databases with another SQL server for failover purposes utilising SQL Server database mirroring.   We will not specify a Failover Database server for any of our databases at this present time.

image thumb61 Configuring the User Profile Service in SharePoint 2010

Specify your Synchronization Database which is used to store configuration and staging data for synchronization of profile data such as that from Active Directory.

image thumb62 Configuring the User Profile Service in SharePoint 2010

Next, specify your Social Tagging Database which is used to store tags and notes that are created by users.  Social Tagging is a new feature in SharePoint 2010 which is not only displayed against the items that user’s are tagging, but are also displayed in the user’s activity feed.

image thumb63 Configuring the User Profile Service in SharePoint 2010

Next, select your Profile Synchronization Instance Server.

In the proceeding section, we will not create a My Site Host URL and will leave this for part two of this series.

Click Create.

image thumb64 Configuring the User Profile Service in SharePoint 2010

You should now have the User Profiles service application listed and  started.

image thumb65 Configuring the User Profile Service in SharePoint 2010

We will now venture back into Central Administration / System Settings / Manage services on server.

Scroll down to the User Profile Service and User Profile Synchronisation Service and start both.  The User Profile Service should start without any further user interaction, however the User Profile Synchronization Service will ask for your SharePoint Farm credentials.

image thumb66 Configuring the User Profile Service in SharePoint 2010

Click Ok.

Both services should now be listed as started.

image thumb67 Configuring the User Profile Service in SharePoint 2010

This in turn, will correctly configure and start our ForeFront Identity Manager Windows Services (FIM).

image thumb68 Configuring the User Profile Service in SharePoint 2010

At this point, it is imperative you run an IIS reset.  Even better, just reboot the machine icon smile Configuring the User Profile Service in SharePoint 2010

We will now configure our User Profile Connection to our Active Directory Domain.

Navigate to Central Administration / Application Management / Manage Service Applications.

Click on User Profiles / Manage.

image thumb69 Configuring the User Profile Service in SharePoint 2010

Click on Configure Synchronizations connections / Create New Connection.

Enter the follow details;

Connection Name:

Type: Active Directory

Auto discover domain controller or specify a domain controller

Authentication Provider Type: Windows Authentication

Account Name / Password:

Port: 389

image thumb70 Configuring the User Profile Service in SharePoint 2010

Click on Populate Containers

image thumb71 Configuring the User Profile Service in SharePoint 2010

Click OK.

Your connection should now be listed as follows upon successful creation.

image thumb72 Configuring the User Profile Service in SharePoint 2010

We can now easily setup connection filters against our Active Directory User Profile connection by clicking on the connection that was just created and selecting “Edit Connection Filters”.

Specify and Add any User or Group exclusions and then click OK.

image thumb73 Configuring the User Profile Service in SharePoint 2010

Next we will Configure a Synchronization Timer Job via Central Administration / Application Management / Manage Service Applications / User Profiles.

image thumb74 Configuring the User Profile Service in SharePoint 2010

Click Enable

We will finish off by initiating a full synchronization via Central Administration / Application Management / Manage Service Applications / User Profiles / Start Profile Synchronization.

image thumb75 Configuring the User Profile Service in SharePoint 2010

In order to confirm that the import was a success, the Number of User Profiles should now be set to the number of users in your organization, in my case I have 269 dummy users in my Active Directory domain.  Word of note; this will take some time and is considerably slower than an Active Directory User Profile import in SharePoint 2007.

image thumb76 Configuring the User Profile Service in SharePoint 2010

You can also venture into Manage User Profiles and search for users (please take note that SharePoint 2010 does not display any users by default and that you will have to search for them).

image thumb77 Configuring the User Profile Service in SharePoint 2010

Edit a User Profile to ensure that all the necessary Active Directory attributes were successfully imported.

image thumb78 Configuring the User Profile Service in SharePoint 2010

We have now successfully completed a User Profile Synchronization which will form as a basis for User’s My Sites in my next article.  Until then, happy SharePointing!!

转载于:https://www.cnblogs.com/ahjxxy/archive/2012/04/12/2444363.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值