Home > Uncategorized > Using the BDC to populate user profiles from a SQL Server database – Part One

Using the BDC to populate user profiles from a SQL Server database – Part One

I’m going to post a few articles about the process I went through to get this implemented.

There are a few things that aren’t documented that I wanted to catch in these posts, to prevent any further hair loss in the Sharepoint world.

In this first post I will detail how to install and configure SSO. You will only need to configure SSO if you are using SQL authentication to connect to SQL Server.

Initial Setup

I used multiple service accounts for my MOSS 2007 farm, to prevent a single point of failure. It can make installation a little more complex, but will provide a stable environment in the long run.

Below is a brief overview of the accounts that are needed for the SSO installation and configuration (For full details on all the accounts needed for a MOSS 2007 installation have a look here http://technet2.microsoft.com/Office/en-us/library/798aa915-7025-4adc-a210-4f6ff14c43fc1033.mspx?mfr=true)


Used to run installs, you should use this account to log-on to your servers. It should be a local administrator of all your servers and have system administrator rights to the database.


Used as the application pool for Central Administration and the process account for the Sharepoint Services Timer service. This account needs to a members of Logins, Dbcreator, Security Admin and DBO (for each database) roles

mossuser-SSPAppPool, mossuser-PortalAppPool, mossuser-OtherWebAppPool

All accounts that are used for web application pools will need to be able to administer SSO, this can be achieved by adding them to the mossgroup-SSOAdmin group.


This account is used to run the SSO Service, it will need to be a local administrator of the master key server and have security  administrator rights to the database*


This group should be added to the “Farm administrator’s group” and should have the the mossuser-SSO account as a member. (It’s worth while adding all users that need to administer the farm to this group for ease of management)


This group is used for the “Single Sign-On Administrator Account” and “Enterprise Application Definition Administrator Account” settings in “Manage Server Settings for Single Sign-On” page. This will need to have the following accounts as members; mossuser-FarmAdmin, mossuser-SSO, mossuser-Setup, mossuser-SSPAppPool, mossuser-PortalAppPool, mossuser-OtherWebAppPool.

Depending on how you manage your MOSS 2007 environment I would also add the mossgroup-FarmAdmin as a member, this means that all Farm administrators will also be able to administer SSO

*If you are unable to give your SSO account security administrator rights on your database then you will need to do the following

  • On a server that has MOSS 2007 installed, navigate to “C:\Program Files\Common Files\Microsoft Shared\Microsoft Office 12 Single Sign-on” and locate the sso_schema.sql file and take a copy.

  • Open up “Microsoft SQL Server Management Studio” and connect to your database server.

  • Create a database called SSO

  • Put the mossuser-SSO in the dbo role for this database

  • Make sure you have SSO selected as the database and then open the copied sso_schema.sql file.

  • Run the script


Configure the SSO Service

Locate the “Microsoft Single Sign-on Service” in Services

 SSO Service

Right click on the service and select properties

On the “Log On” tab, select “This account” and enter the mossuser-SSO as the user in the format of Domain\User

SSO Service Props 

Click the Apply button and then OK

Restart this service

Update the service account through Central Administration


I haven’t seen this documented anywhere, but you need to do this otherwise you will get the following error message when trying to configure SSO. This is only applicable if you are using multiple service accounts, if you are using one account that has local administrator rights and system administrator rights on the database this doesn’t occur

You do not have the rights to perfrom this action

In the event log the following error is logged

User DOMAIN\ mossuser-Setup failed to configure the single sign-on server. The error returned was 0x800708ad. Verify this account has sufficient permissions and try again.

Go to the Central Administration site

In the Central Administration site, go to “Operations” and under “Security Configuration”, click on “Service accounts”

Select the “Windows Service” option and in the drop down, select “Single Sign-on Service”Select the “Configurable” option and enter the mossuser-SSO user and password

 Service Account

Click OK

Secondly if you get this error message

Failed to connect to the database server. Verify connectivity and rights for the configuration account and try again.

You need to follow these instruction from the following MS KB article: http://support.microsoft.com/kb/901203

Configure the SSO Server

In the Central Administration site, go to “Operations” and under “Security Configuration”, click on “Manage settings for single sign-on” and then “Manage server settings”.

Enter DOMAIN\mossgroup-SSOAdmin for the “Single Sign-On Administrator Account” in the “Account name” box

Enter DOMAIN\mossgroup-SSOAdmin for the “Enterprise Application Definition Administrator Account” in the “Account name” box

Enter the database server name and the SSO database name for the “Database Settings” in the “Server name”  and “Database name” boxes

Click OK

Click on “Manage encryption key” and then click on the “Create Encryption Key” (You can also backup your encryption key here if you need to)

Go back to the “Manage Single Sign-On” screen

Click on “Manage settings for enterprise application definitions”

Click on “New Item”

Enter a display name for the application in the “Display Name” box

Enter an application name for the application in the “Application name” box (You will use this name as the reference later on so  I would make it small and easy to remember)

In the “Field 1: Display Name” , enter “User ID” and set “Mask” to “No”

In the “Field 2: Display Name”, enter “Password” and set “Mask” to “Yes”

Click OK

 SSO App Admin

Return back to the “Manage Single Sign-On” screen

Click “Manage account information for enterprise application definitions”

Enter the SQL account name in the “User ID” field

Enter the password for the SQL account in the “Password” field

Click OK

SSO App Def


This is another task that I haven’t seen documented that needs to be done every time you create an encryption key

Go to the Central Administration site

Under “Upgrade and Migration”, click “Enable features on existing sites”

Check “Enable all sites in this installation to use the following set of features” and click on OK. I think this must send out the new encryption key to the existing sites.

So I’m hoping now that you have SSO up and running!

In Part Two I will detail how to set up the BDC.


Categories: Uncategorized Tags: , ,
  1. vickeybird
    26 July 2007 at 12:44 pm

    Proceeding from here, how do we configure a site to use SSO authentication?
    SSO along with ADFS has been discussed in detail but default SSO is pretty confusing.
    Any clue?

  2. 17 October 2012 at 11:11 am
  1. 2 November 2007 at 9:46 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: