> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-single-sign-on-troubl.md). Agents can also search and read this documentation through its [MCP server](https://help.security.gallagher.com/knowledge-hub/~gitbook/mcp).

# Troubleshoot Active Directory single sign-on

Diagnose Active Directory Single Sign-On failures caused by missing or duplicate SPNs.

Almost every SSO fault is an **SPN registration or duplication problem**, diagnosed and fixed with the Windows **`setspn`** command.

In the examples, `FTServiceAccount` is the account the FT Command Centre Service runs under, and `SERVERNAME.domain` is the machine name and domain.

## Move the SPN to the service account by hand

Use these steps when the FT Command Centre Service "Log on as" account is changed from **Local System account** to **This account**. `GGLCCSvc` must then be registered against the service account and removed from the Computer account (see [How the SPN works](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-single-sign-on-settin.md#how-the-spn-works)).

These steps were written for 7.01 and above and older operating systems, but should still be relevant.

Once SSO is enabled, the SPN registration tries to register the SPN under the Command Centre service account instead of the system account. In most cases that will not work, because standard accounts lack the privilege. If the service runs as an account with the privilege (for example a domain admin), it should be able to register it.

To add the SPN manually, where `GGLCCSvc` is the service (`SERVERNAME.domain` and `FTServiceAccount` are the example names above):

1. Delete the SPN from the machine name. The general form is `setspn -d service/machinename machinename` (service=GGLCCSvc, machinename=Hostname). For example: `setspn -d GGLCCSvc/SERVERNAME.domain SERVERNAME`
2. Set the SPN for the service account: `setspn -s GGLCCSvc/SERVERNAME.domain FTServiceAccount`
3. Check for duplicates with `setspn -x`. Query the SPNs on an account, user or computer with `setspn -L`.
4. Reboot and try to log on with single sign-on.

If you prefer not to use the command line, do it on the Domain Controller: run `adsiedit.msc`, connect to the DC, browse to the Computer or User object, right-click the account, select **Properties**, scroll to **servicePrincipalName** and edit it there.

## 1. List the SPNs on the service account

`setspn -L FTServiceAccount`. If nothing is registered, the result is empty:

```
c:\Windows\system32>setspn -L FTServiceAccount
Registered ServicePrincipalNames for CN=<FTServiceAccount>,CN=Users,DC=<domain>,DC=local:
```

## 2. Register the SPN

Needs privileges, usually domain admin:

```
setspn -s GGLCCSvc/SERVERNAME.domain FTServiceAccount
```

Alternative if using Local System / Network Service: `setspn -s GGLCCSvc/SERVERNAME.domain Hostname`. On success:

```
Checking domain DC=<domain>,DC=local
Registering ServicePrincipalNames for CN=<FTServiceAccount>,CN=Users,DC=<domain>,DC=local
        GGLCCSvc/servername.domain
Updated object
```

![Command Prompt showing a successful setspn -s GGLCCSvc registration against the service account](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-61fa89119a670ead8c226d41f8a019d24ad697ac%2FSECHUB-AD-SSO-09-setspn-register-success.png?alt=media)

## 3. Check for duplicates

`setspn -x`. Ignore duplicates unless they involve `GGLCCSvc`.

## 4. Delete an incorrect or duplicate SPN

`setspn -d GGLCCSvc/ComputerName Account_or_ComputerName`, then re-list to confirm and **reboot**:

![Command Prompt showing setspn -d deleting the GGLCCSvc SPN then re-listing to confirm removal](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-3929321e9817afbb09b00716f7bf16b2f6cf65f5%2FSECHUB-AD-SSO-10-setspn-delete-verify.png?alt=media)

## Reference example

![FT Command Centre Service "Log On As" the domain service account — showing the machine name, domain, and service-account login](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-ec223fd8352e71d17fc7b3bde5566a3a7741bf23%2FSECHUB-AD-SSO-08-server-domain-service-account.png?alt=media)

***

🔗 **Related**

* [Single Sign-On - Common Fault and Scenarios](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-single-sign-on-common.md). Error codes and logon-name mismatches.
* [Single Sign-On - Setting Up](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-single-sign-on-settin.md). How the SPN is registered.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-single-sign-on-troubl.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
