Accessing MS SQL Server with IWA
Introduction
Integrated Windows Authentication (IWA) requires:
- Installing a SQL Server instance
- Creating a new domain service account
- Granting access to SQL Server database
- Registering a service account to run IIS and ASP.NET
- Assigning an account as an application pool identity
For instructions on Creating the SQL account or Installing SQL Server see Installing and Configuring SQL Server
Creating a Domain Service Account
The account needs access to the application server and database server. Ensure password expiration is not enabled or the account could lock you out of Secret Server.
Granting Access to SQL Server database
-
Connect to the Database instance using SQL Management Studio.
-
Right click on the Security node (ensure this is the top most security node under the instance and not under the database name itself) and select New > Login.
-
Enter the Login name as
Domain\Username
. -
Ensure Windows Authentication radio button is selected.
-
If you have already created the database, then under User Mappings select the database and grant dbOwner permission. Otherwise, if you plan to have the Database created for you, under Server Roles select dbCreator.
-
Click the Ok button.
Assigning Account as Identity of Application Pool
-
Open IIS (Run command inetmgr).
-
Click the Application Pool node.
-
Select Secret Server's Application Pool (default is SecretServerAppPool).
-
On the Right panel, Click .
-
Scroll down to the Identity row under Process Model.
-
In the popup, select Custom Account > Set.
-
Type the user as domain\username.
-
Type the password.
-
Click the Ok button.
-
Recycle the application pool by clicking the Recycle.. button under the Application Pool tasks.