Set Up a Service Account for the Gateway
When setting up the for Kerberos token-based authentication, you first created a service user account in the Active Directory. The next step is to set up a service account for the Gateway. This procedure involves:
gateway83
When setting up the
API Gateway
for Kerberos token-based authentication, you first created a service user account in the Active Directory. The next step is to set up a service account for the Gateway. This procedure involves:Step 1: Set Up Service Account in Active Directory
- Log in to the domain controller and create a user account that is used to create a keytab file for the Gateway. For example: "sp_keytab".
- Open the Properties for the user account just created.
- In theDelegationtab, select these options:
- Trust this user for delegation to specified services only
- Use any authentication protocol
- Populate the table under "Services to which this account can present delegated credentials" as follows:
- ClickAdd...to open the Add Services dialog.
- ClickUsers or Computers.
- Enter the service user account name that was created in Set Up Service Account for Target Service (example: "sp_services"). ClickCheck Namesto verify.
- ClickOKto return to the Add Services dialog box.
- Select the appropriate Service Principal Name (SPN) from the available services list, and then clickOKto return to the Properties dialog.
- Select theExpandedcheck box. This displays all the related SPNs.
- ClickOKto close the Properties.
Step 2: Assign Service Principal Names to Gateway Service Account
- Log in to the domain controller or to some other server that is joined to the domain. Ensure that the Windows Resources Tool Kit is installed.
- Open a command prompt (run as Administrator if necessary).
- Run the following command to assign an SPN (Service Principal Name) to the service account (created in Step 1: Set Up Service Account in Active Directory).setspn -A HTTP/<Gateway_host><SPN>\<User_account>Where:
- <Gateway_host>is theAPI Gatewayhost name
- <SPN>is the Service Principal Name
- <User_account>is the user account that is created in Step 1: Set Up Service Account in Active Directory.
Example:setspn -A HTTP/mysite.kworld.mycompany.com mycompany\sp_keytab
Next step:
Generate a Kerberos Keytab File