Skip to main content

How To Setup SharePoint 2010 Public Beta User Profile Synchronization with Active Directory on Windows Server 2008 R2

This document is designed to help someone new to SharePoint 2010 Beta setup and test SharePoint Server 2010 User Profile Synchronization on Windows Server 2008 R2.  The official information on the TechNet site (link) and the SharePoint team blog (link) were used to develop this guidance.
The lab environment is based upon two Hyper-V servers (affords you the ability to take snapshots along the way and roll back if necessary), a Domain Controller (contoso.com) and a member server to host SQL Server 2008 and SharePoint 2010 Pubic Beta software. On both servers, the Windows Firewall and IE ESC were set to off and the servers were given access to the Internet in order to download updates and software required by the SharePoint 2010 Pre-requisite installer. Please keep in mind that your domain and machine names will vary and you should substitute accordingly.
If there are any updates or feedback, then please add them to the comments.
Lab Environment
Here are the machine names and network settings used; please substitute your own as needed.
Domain Controller
Hostname: DC
Memory: 1GB
IP Settings, Virtual Network #1: 172.16.1.100 / 255.240.0.0, DNS 127.0.0.1
IP Settings, Virtual Network #2: DHCP
Operating System: Windows Server 2008 R2 + All critical updates from Windows Update
Server Role(s): Active Directory Domain Services, DNS
Forest Root Domain: contoso.com
Forest Functional Level: Windows Server 2008 R2
Hyper-V Configuration: Single CPU, 127GB Disk,
                                         Virtual Network #1 Private, Virtual Network #2 Internet
Member Server
Hostname: Sharepoint
Memory: 4096MB
IP Settings, Virtual Network #1: 172.16.1.101/255.240.0.0, DNS 172.16.1.100
IP Settings, Virtual Network #2: DHCP
Operating System: Windows Server 2008 R2 + all critical updates from Windows Update
                                 + WCF hotfix
Server Software: SQL Server 2008 SP1 + CumU
Hyper-V Configuration:
Two CPU's, 127GB Disk, Virtual Network #1 Private, Virtual Network #2 Internet
Configuration Steps
Login to dcserver.contoso.com as contoso\administrator.
Create a SharePoint farm admin account named ‘spadmin'.
a. Use Active Directory Users and Groups to create contoso\spadmin the account name should be ‘SharePoint Admin'.


b. Setup a Contoso OU and add user accounts into the OU as required for your own testing.
3. Run Delegation Control wizard to add contoso\spadmin account to "Replication Directory Changes" permissions.
a. Right click domain and click "Delegate Control..."
b. Click Next.
c. Add contoso\spadmin and click Next.
d. Select "Create a custom task to delegate" and then click Next.
e. Click Next.
f. Check the "Replicating Directory Changes" in the Permissions window and then click Next.
g. Click Finish to complete the Delegation of Control Wizard.
4. Add the contoso\spadmin account as a local machine administrator to the SharePoint WFE (sharepoint).
5. Login to sharepoint.contoso.com as contoso\spadmin to install software.
[NOTE: This is critical! You MUST do this or likely your ‘Forefront Identity Manager Service' (although set to Automatic) will fail to start automatically after starting the SharePoint ‘User Profile Synchronization Service' successfully.]
6. Run Windows Update to install all critical updates.
7. Install SQL Server 2008 SP1 + CU2.
a. Full install with default instance.
b. Used contoso\spadmin as the service account for all services.
[NOTE: If you already have SQL Server 2008 SP1 installed under another identity, simply add the contoso\spadmin login to SQL Server Logins, and then grant that account SysAdmin role on the server and continue with SP1 + CU2.]
c. Installed report server but do not configure.
8. Restart.
9. Install WCF hotfix (KB976462)for Windows Server 2008 R2: http://go.microsoft.com/fwlink/?LinkID=166231
10. Restart.
11. Check that server can access internet websites like http://www.bing.com/.
12. Install ‘en_sharepoint_server_2010_beta_x64_x16-19249.exe' from MSDN, the Public Beta using the product key provided.
13. Click Install software prerequisites.
14. Click Next.

15. Accept terms and click Next.

16. When the preparation tool completes, click Finish. If not, then please look at the log file and correct internet access problem or manually download and install packages.
[NOTE: You can run prerequisite tool more than once.]
 
17. Click Install SharePoint Server.
 
18. Enter your product key (from MSDN) and press Continue.

19. Accept terms and click Continue.

20. Click Server Farm.
 
21. Select Complete and then click Install Now.
 
22. After installation completes, click Close to run the SharePoint Products and leave the checkbox checked to run Technologies Configuration Wizard.
[NOTE: If you want to test the Office Web Applications, then uncheck running the wizard, click close and install the Office Web Applications installer en_office_web_applications_beta_x64_456141.exe from MSDN obtaining your product key. Then run the configuration wizard after the Office Web Applications install. The Wizard can be run more than once and you can always add the OWA installation later if desired.]


23. Click Next to start the configuration wizard.
 
24. Click Yes.

25. Select Create a new server farm and click Next.

26. Enter the database server, username and password. Click Next.

27. Enter your passphrase and then click Next.

28. Click Next.

29. Apply your configuration settings by clicking Next.
 
30. After configuration completes, click Finish.

31. Central administration will start in a browser and then click Ok.

32. Click Next.

33. Select contoso\spadmin for the Service Account and then click Next.

34. Enter a Title and then click Ok to create a site collection.

35. Farm configuration wizard completes and then click Finish.

Setting up User Profile Synchronization with Active Directory
1. On the Central Administration page, click Manage Service Applications.

2. Highlight the User Profile Service Application by clicking the empty white-space to the right of the application title. Click Manage. Then, click Administrators. Give the farm admin account ‘SharePoint Admin' Full Control and then click Ok. [Optional: Repeat for all service applications.]

[NOTE: Type the account name ‘SharePoint Admin' and click the check name command button, don't use ‘contoso\spadmin'.]

3. Manage User Profile Service Application (by clicking the title or highlighting it and then click Manage).

4. Check that statistics appear on the far right column on the User Profile Service Application page.
 
5. Go back to Central Administration home page by clicking Central Administration.
6. Click ‘Manage services on server'.

7. Click start on ‘Microsoft SharePoint Foundation User Code Service'. (Sandbox Solutions)
8. Click Start on ‘User Profile Synchronization Service'.

9. Click Ok to select the User Profile Application.

10. It will take several minutes for the User Profile Synchronization Service to change from Starting to Started.

11. When the service is started (in my lab environment took 7-8 minutes), you can refresh the services page and eventually you'll notice that the ‘User Profile Synchronization Service' status will be Started. Plus, you can start services.msc to see that the Forefront Identity Manager services are configured and started.
View of services page:

View of services.msc:

12. Click Central Administration.
13. Click Manage service applications.
14. Click User Profile Service Application.
15. Click Configure Synchronization Connections.
 
16. Refresh browser or return to User Profile Service Application, click Configure Synchronization Connections and then click Create New Connection.


17. Enter your Active Directory information and then click Populate Container.

18. Select OU containing your test users (Contoso) and then click Ok.

19. Your Active Directory connection will be listed.
[NOTE: If not, you didn't install the SharePoint 2010 software logged on as the contoso\spadmin account. Go back and try again. You did take snapshots, right?]

[NOTE: You'll notice that once the Connection has been created, that you can't ‘Edit' the connection due to a scripting error on the page. This is a known issue. To work around this, hit F12, then in the debugger choose IE 7 mode, then click ‘Edit' again. You'll be able to edit the connection.]
20. Navigate back to Manage Profile Service: User Profile Service Application page.

21. Click Start a Profile Synchronization, select Start a Full Synchronization and then click Ok.

22. Depending upon how many objects you are syncing, it may take a long time. With only 10 users, the user profile sync only took a few minutes. Refreshing the page shows that 10 User Profiles were imported.

23. On the Manage User Profiles page, I can successfully search for "test" and the query returns all the test users.

Yes it works!
You'll now want to start the SharePoint Foundation Search service and configure it along with installing the Office Web Applications if you already haven't done so.

Comments

Popular posts from this blog

Sharepoint 2010 Subsites webpart

This posting was originally made by Arild Aarnes and it is in here . This is a simple webpart to show a list (with links) of subsites immediately below the current site. This webpart will work on both Sharepoint 2010 and Sharepoint Foundation. On Sharepoint 2010 you could have used the built in “Table of Contents” webpart to do similar things but this one can also display the list as a dropdown list to save space on the webpage and it can open links in a new window. All the settings can by edited in the webpart configuration panel. The settings are: Show bullet in list – this will display the small square gif in front of the site name Open link in new window – this will open the subsite in a new window Show Site Description – this will show the description you entered when you created the subsite Show icon – Shows a icon for the type of subsite, see picture. Show as dropdown list – Will display the subsites in a dropdown box to save space. The webpart can be downl

Configuring the User Profile Service in SharePoint 2010

I will share with you my step by step guide in setting up the User Profile Service application, focusing on its configuration and administration and how we can enable the creation of user profiles via an Active Directory import . SharePoint 2010 introduces the notion of “Service Applications” which build’s upon the “Shared Services Provider (SSP)” which was introduced in SharePoint 2007.  Service Applications are individual services that can be configured independently and can be shared across other sites within your farm with some service applications that can also be configured across farms. The individual service applications provided with SharePoint 2010 are listed as follows; Access Services Business Data Connectivity Document Conversion Excel Services Managed Metadata Service PerformancePoint Search Service Secure Store State Service Visio Graphics Service User Profile Service This article will build upon our initial SharePoint 2010 install utilizing the least privi

The Text Filter Web Part – Without Having To Filter Exact Text

This posting I took it from  Here   This applies to both SharePoint 2007 and 2010.  In MOSS Enterprise, and the 2010 version of Enterprise.  There is an out-of-box web part called the Text Filter Web Part .  Basically, when you put this web part on a page, and put a list or library web part on the same page, you then create a web part connection that sends the text typed in the box as a filter to one of the columns in the web part, like this: The name Molly Clark had to be typed in exactly.  So, if you typed “Molly”, this record would not come up.  People use the text filter web part when they just want to search a single column in a list or library.  Otherwise, you’d simply use the “Search” box at the top of the screen, choose “This List” or “This Site” and perform SharePoint searches that way. One more note before I get into today’s solution: If you’re making use of site columns in your lists, there’s a setting where you can specifically select which columns you do N

Telephone format for a text box on infopath form

If you want to create a Telephone format on a infopath form : 1. Add a text field to the form (Even if it is the list or a blank form) 2. Select the text box and click on Manage Rules 4. Add a rule to your textbox control with the following conditions (make sure to select "and" operator):     a. field "does not match pattern" Phone number     b. the expression: string-length(translate(., "()- ", "")) = 10     c. the expression: string-length(translate(., "()- 0123456789", "")) = 0 5. Add action to the rule:     a. Set a field's value     b. Select your textbox field     c. Insert formula for the value (click the fx button): concat("(", substring(translate(., "()- ", ""), 1, 3), ") ", substring(translate(., "()- ", ""), 4, 3), "-", substring(translate(., "()- ", ""), 7, 4)) Link for the detailed explanation :  http:

HOWTO: change the home button text on the top link bar in sharepoint 2010

Hi All, I got a requirement that the title of the site collection which shows the first button on the top link bar to be different from the title. for example: my sharepoint site title is " Srikanth SharePoint Blog" and I need to show"Home" on the top link bar. It shows Home when the publishing features are not enabled. But once the publishing features are enabled it shows the same as the title("srikanth sharepoint blog" in my case instead of "Home").In other blogs I saw the solution as "in SITE ACTIONS>SITE SETTINGS>LOOK AND FEEL> TOP LINK BAR" , but once the publishing features are enabled, you don't see the "TOP LINK BAR" under "LOOK AND FEEL"(ofcourse it is changed to "NAVIGATION" , when publishing features are enabled). In this case : 1. Hide the initial button by adding code in css.    .s4-tn li.static > a{ display: none !important; } .s4-tn li.static > ul a{ display: bloc

SharePoint Branding and Design in 2010-2

Update: Really Small SharePoint Calendar I really was not that happy with the look of the first calendar so after some modifications and a bit of CSS magic I have come up with a really good looking small calendar. At least I think so… Basically I have replaced the text of an event item with a color coded box. The benefit that you get out of this is that you don’t have to try and read the even within the small calendar but if you hover over and click on the color block you get the list Item display. Orange is for single event items (8am-10am, etc) Green is for full day events or repeat events Another nice feature to this is that I have also simplified the visual indicator when there are more then two event items in one day. Instead of seeing the arrow and text all you see is the arrow. Once you click on the arrow it will show the other blocks of events (Right image). Here is the CSS Code: Download Here Simply place a content editor web part on the same page as the calendar

SharePoint Branding and Design in 2010

Hide First Tab in SharePoint 2010 Navigation I created a blog post on this for SharePoint 2007 HERE : But SharePoint 2010 is a bit more complex. Since it uses UL’s and Li’s for it’s navigation it is a bit harder to hide just one element. You will notice that the Home tab actually is the first node and then has a child UL which represents the rest of the navigation Items. So the approach is to hide the first <li> <a> (display: none) and then simply just use (display:block ) to show the hidden <ul> <li> <a> tags. Here is the CSS you could use to hide just the first node (home) tab in a SharePoint 2010 application: .s4-tn li.static > a{ display: none !important; } .s4-tn li.static > ul a{ display: block !important; } Enjoy! Posted by Erik Swenson at 12:12 PM 2 comments Labels: Branding , CSS , SharePoint 2010 Wednesday, August 18, 2010 How To: Hide Left Side Navigation on Home Page I was recently asked: " How can I hide the sid

Data View conditional formatting using SharePoint Designer

Data View conditional formatting using SharePoint Designer This article demonstrates how to use SharePoint Designer 2010conditional formatting to format items in a SharePoint (SPS 2010) list based on item metadata. The example uses a standard SharePoint task list and formats tasks based on the due date. The end result is a list view sorted by due date with item text or background coloured to represent the number of days until the due date. The Process In this example I have started with a standard task list and have created a few sample items for testing / demonstration. From the task list, create a new view, starting from the default “Active Items” view (filtered to only display incomplete tasks). The view created in the example is called “Active – Coloured” Open the view using SharePoint Designer. Right click on the List View Web Part and select “Convert to XSL Data View”. This will automatically convert settings for the current view into da