Running the IIS Application Pool As a Service Account
Overview
We recommend setting up a domain service account that can both access the Delinea product's SQL database and run the IIS Application Pool(s) dedicated to your Delinea product.
To set up this service account correctly you will need to:
-
Create a service account in Active Directory that will be dedicated to your Delinea product (domain).
-
Granting the service account access to the SQL Server database.
-
Assign the service account as the identity of the application pool or pools in IIS.
-
Grant folder permissions for the service account on two folders.
-
Configure User Rights Assignment to the service account.
Procedure
Task 1: Creating a Domain Service Account
-
Create a local or domain user account (or identify one to use).
-
Open IIS (Search > inetmgr) on your Web server.
-
Open the Active Directory Users and Computers link from Administrative Tools.
-
Click to open the directory where you want to assign this account, such as testlab.com.
-
Select Service Accounts.
-
Right click and and select New > User. The "New Object - User" wizard dialog box appears.
-
Type a name and logon name for the service account.
-
Click the Next button. The wizard advances to the next dialog box (same name).
-
Type a password in the Password and Confirm Password text boxes.
-
If necessary, click to deselect the User must change password at next login check box.
-
Click to select the Password never expires check box. Failing to do this could lock the account out of Secret Server.
-
" Check Password never expires or the account could lock you out of Secret Server.
-
Click Next button.
-
Click the Finish button. You can now give the account access to the database server and the application server.
Task 2: Granting Access to the SQL Database
Grant access:
-
Open the SQL Management Studio on your database server.
-
Connect to your Delinea product's SQL database using an administrator account.
-
Click to select the Security folder in the Object Explorer.
-
Right-click the same folder and select New > Login…. A log on dialog box appears.
-
Ensure the Windows Authentication radio button is selected.
-
Click the Search… button. The "Select User, Service Account, or Group" dialog box appears.
-
Ensure that your domain or AD server appears in the From this location text box. If not, click the Locations… button and select it.
-
Type the login name you created for your Delinea service account, such as svc_thycotic, in the Enter the object name to select text box.
-
Click the Check Names button.
-
Click to select the correct account.
-
Click the OK button. The dialog box closes, returning you to the Login - New dialog box.
-
Either, if you have already created the database for your Delinea product:
- Click User Mapping in the Select a page list box.
- Click to select the check box for the database in the Users mapped to this Login list.
- Click to select the db_owner check box in the Database role membership… list.
-
Or, if you have not yet created the database:
- Click Server Roles in the Select a page list box.
- Click to select the db_creator check box.
-
Click the OK button.
Task 3: Assigning the Identity of Application Pools
-
Click the Applications node under the server name in the Connections tree.
-
Right-click the node and select Advanced Settings... The Advance Settings dialog box appears.
-
Click the … button for the Identity entry in the Process Model section. The Application Pool Identity dialog box appears.
-
Click to select the Custom Account selection button.
-
Click the Set… button. The Set Credentials dialog box appears.
-
Type your service account's name, such as test and password.
-
Click the OK button. The dialog box closes.
-
Open the command console as an Admin.
-
Change the directory to your .NET framework installation directory using the "cd" command, for example,
C:\Windows\Microsoft.NET\Framework\v4.0.30319
. -
Type
.\aspnet_regiis -ga <domain name>\<username>
, replacing<domain name>
and<username>
with your information. For local accounts omit the domain name parameter.
Task 4: Granting Folder Permissions
Following the steps below, you give the service account "Modify" access to two folders:
C:\Windows\TEMP
- The folder where your Delinea product's application files are located, such as
C:\inetpub\wwwroot\SecretServer
Procedure (for each folder):
-
In a file manager, navigate to the Secret Server application folder.
-
Right-click the folder and select Properties. The Properties dialog box appears.
-
Click the Security tab.
-
Click the Advanced button.
-
Click the Add button. A permissions panel appears.
-
Click the Select a Principal link. The "Select User, Computer, Service Account, or Group" dialog box appears.
-
Ensure that your domain or AD server appears in the From this location text box. If not, click the Locations… button and select it.
-
Type the login name you created for your Delinea service account, such as svc_thycotic, in the Enter the object name to select text box.
-
Click the Check Names button.
-
Click to select the correct account.
-
Click the OK button. The dialog box closes, returning you to the permissions panel.
-
Click to select the Modify check box in the Basic Permissions section. Your service account should have the Modify, Read & Execute, List folder contents, Read, and Write permissions selected for this folder
-
Click the OK button.
-
Click the Apply button.
Task 5: Configuring User Rights
The following settings are required for DelineaSecret Server to function:
- "Log on as a batch job"
- "Impersonate a client after authentication"
You can adjust these settings either at the Domain level using group policy or locally on your IIS Web server using the Local Security Policy Console. See User Rights Assignment to learn more.
Option 1: Setting User Rights Assignment on the Domain
-
Open the Group Policy Management Console.
-
Right-click the desired GPO folder (under the domain node) in the Group Policy Management Tree, and select New. The New GPO dialog box appears.
-
Type the name, such as "Delinea User Rights Assignment," in the Name text box.
-
Click the OK button. The dialog box closes.
-
Right-click the GPO you just created and select Edit. The Group Policy Object Editor appears.
-
On the Computer Configuration node, click to expand Policies > Windows Settings > Security Settings > Local Policies.
-
Click to select the **User Rights Assignment **folder.
-
Repeat the following procedure for the "Log on as a batch job" and "Impersonate a client after authentication" permissions (for this instruction we show the former):
-
In the list on the right, right-click Log on as a batch job and select Properties. The "Log on as a batch job Properties" dialog box appears.
-
Ensure that the Define these policy settings check box is checked.
-
Click the Add User or Group button. A dialog box appears.
-
Add your Delinea service account.
-
Click the OK button. The dialog box closes. The new policy appears in the list.
-
Click the Apply button.
-
-
Link your new GPO to the OU where your Delinea product machine accounts exist, that is, the Web and database servers.
Option 2: Setting User Rights Assignment Locally
-
On the Web server hosting IIS and your Delinea Application files, open the "Local Security Policy Console" as an administrator (Run as administrator).
-
On the Local Policies node, click to expand Local Policies > User Rights Assignment.
-
Click to select the User Rights Assignment folder.
-
Repeat the following procedure for the "Log on as a batch job" and "Impersonate a client after authentication" permissions (for this instruction we show the former):
- Right-click on Log on as a batch job in the list on the right and select Properties > Add User or Group.
- Click to select your Delinea service account.
- Click the OK button.
gpupdate /force
**, and restart the Windows Process Activation Service.