How do I fix target principal name is incorrect?

How do I fix target principal name is incorrect?

On domain controllers that are experiencing this issue, disable the Kerberos Key Distribution Center service (KDC): Click Start, point to Programs, click Administrative Tools, and then click Services. Double-click KDC, set the startup type to Disabled, and then restart the computer.

How do you resolve the target principal name is incorrect Cannot generate SSPI context?

There are a couple of solutions for this problem. You can elevate permissions and use domain admin account for your SQL Server Service (Not recommended). You can manually create an SPN for your computer that is running SQL Server and assigned that SPN to the service account of the SQL Server service on that machine.

How do I fix SSPI context error?

SQL Monitor Connection Error – Cannot generate SSPI context

  1. Stop your SQL Server service. Open SQL Server Configuration Manager.
  2. Restart the service using the Local System account, then stop it again.
  3. Switch back to your domain account and restart.
  4. Retry the connection in SQL Monitor.

What is an SPN in SQL Server?

A service principal name (SPN) is the name by which a client uniquely identifies an instance of a service. The Kerberos authentication service can use an SPN to authenticate a service.

Is not accessible the target account name is incorrect?

Another reason you can get the “target account name is incorrect” error is if a domain controller was recently migrated from a parent domain to a child domain. In this case, the old computer account for the domain controller may still exist in the child domain.

What is SSPI context?

What does the “Cannot generate SSPI context” error mean? This error means that SSPI tries but can’t use Kerberos authentication to delegate client credentials through TCP/IP or Named Pipes to SQL Server. In most cases, a misconfigured Service Principal Name (SPN) causes this error.

How do I register for SQL Server SPN?

A Domain Administrator can manually set the SPN for the SQL Server Service Account using SETSPN. EXE utility. However, to create the SPN, one must use the can use the NetBIOS name or Fully Qualified Domain Name (FQDN) of the SQL Server. SPN must be created for both the NetBIOS name and the FQDN.

How do I set up SSPI?

Setting Up Integrated SSPI Authentication for PostgreSQL

  1. Identify Administrative Account.
  2. Log in to pgAdmin 4.
  3. Create Administrative Account in Postgres.
  4. Open File Explorer to C:\Program Files\PostgreSQL\11\data.
  5. Edit pg_ident. conf.
  6. Modify pg_hba. conf.
  7. Reload Postgres Configuration.
  8. Confirm SSPI.

What does Cannot generate SSPI context mean?

How do I delete my SPN?

Delete an SPN To remove an SPN, use the setspn -d service/name hostname command at a command prompt, where service/name is the SPN that is to be removed and hostname is the actual host name of the computer object that you want to update.

How do I check my SPN?

Viewing SPNs To view a list of the SPNs that a computer has registered with Active Directory from a command prompt, use the setspn –l hostname command, where hostname is the actual host name of the computer object that you want to query.

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top