Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to setup Postgres to support SSPI/Kerberos, however I think that I have not found out what the correct SPN that is needed to get it working.

The background details:

  • Service account for postgres: 'postgres'
  • Domain Name: 'testdomain.com'
  • Domain Controller: 'dc.testdomain.com'

I have tried the following SPNs and have had zero luck:

  • setspn -A HOST/testdomain.com postgres
  • setspn -A HOST/testdomain postgres
  • setspn -A POSTGRES/testdomain.com postgres
  • setspn -A POSTGRES/testdomain postgres
  • setspn -A POSTGRES/dc.testdomain.com postgres

Does anyone have some suggestions?

share|improve this question
add comment

1 Answer

The correct way to do this is:

setspn -A postgres/machinename.domainname serviceaccount

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.