a·gen·tic a·gil·i·ty

Connecting to SQL Server using DNS update

TL;DR; Explains how updating DNS and Service Principal Names (SPNs) in Active Directory enables secure Windows Authentication connections to SQL Server instances.

Published on
1 minute read
Image
https://nkdagility.com/resources/P0XjI6SRWz-
Subscribe

OK, I now have the additional SPN’s added to AD that I mentioned in my post and a listing returns:

C:>setspn [servername]
Registered ServicePrincipalNames for CN=[servername],OU=Member Servers,DC=[domain],DC=biz:
    MSSQLSvc/spdata.ep-dev.[domain].biz:1422
    MSSQLSvc/spdata.ep-dev.[domain].biz:1433
    MSSQLSvc/[servername].[domain].biz:1422
    MSSQLSvc/[servername].[domain].biz:1433
    SMTPSVC/[servername]
    SMTPSVC/[servername].[domain].biz
    HOST/[servername].[domain]onet.biz
    HOST/[servername]

So when I now try to log into SQL server using spdata.ep-dev.[domain].biz/EPDev and Windows Authentication, all is well and I can connect to the server.

When I try moving the databases I will need to move this SPN to the new SQL Cluster, and it should work there as well.

Here’s hoping…

Technorati Tags: SP 2007

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Healthgrades Logo

Healthgrades

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

Sage Logo

Sage

Higher Education Statistics Agency Logo

Higher Education Statistics Agency

Trayport Logo

Trayport

Capita Secure Information Solutions Ltd Logo

Capita Secure Information Solutions Ltd

SuperControl Logo

SuperControl

Philips Logo

Philips

Akaditi Logo

Akaditi

Teleplan Logo

Teleplan

Genus Breeding Ltd Logo

Genus Breeding Ltd

New Signature Logo

New Signature

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation

YearUp.org Logo

YearUp.org

Big Data for Humans Logo

Big Data for Humans

Emerson Process Management Logo

Emerson Process Management

Epic Games Logo

Epic Games

Ghana Police Service Logo

Ghana Police Service

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Royal Air Force Logo

Royal Air Force

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Washington Department of Transport Logo

Washington Department of Transport

Capita Secure Information Solutions Ltd Logo

Capita Secure Information Solutions Ltd

Healthgrades Logo

Healthgrades

Hubtel Ghana Logo

Hubtel Ghana

ALS Life Sciences Logo

ALS Life Sciences

Trayport Logo

Trayport

Emerson Process Management Logo

Emerson Process Management