SOLVED

SSPI handshake failed with error code 0x80090311

%3CLINGO-SUB%20id%3D%22lingo-sub-2750436%22%20slang%3D%22en-US%22%3ESSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750436%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20full%20error%20I'm%20getting%3A%3C%2FP%3E%3CP%3ESSPI%20handshake%20failed%20with%20error%20code%200x80090311%2C%20state%2014%20while%20establishing%20a%20connection%20with%20integrated%20security%3B%20the%20connection%20has%20been%20closed.%20Reason%3A%20AcceptSecurityContext%20failed.%20The%20Windows%20error%20code%20indicates%20the%20cause%20of%20failure.%20No%20authority%20could%20be%20contacted%20for%20authentication.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20configuring%20a%20new%20server%20as%20a%202019%20Domain%20Controller%20to%20replace%20a%202008%20R2%20one.%20In%20addition%20I%20have%20two%20other%20DC's%20for%20a%20total%20of%203.%20All%20in%20different%20sites.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20with%20all%20FSMO%20roles%20which%20is%20what%20is%20referred%20to%20as%20PDC%20back%20in%20the%20day%20running%202012%20R2.%20The%20other%20running%20Windows%20Server%202019%20and%20now%20the%20new%20one%20that%20I%20mentioned%20above%20that%20replaced%20the%202008%20R2%20also%20running%202019.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20I%20ran%20into%20is%20that%20I%20forgot%20to%20raise%20the%20domain%20functional%20level%20from%202008%20R2%20to%202012%20R2%20before%20I%20demoted%20it.%20Once%20that%20happened%20I%20started%20to%20receive%20errors%20from%20a%20couple%20of%20servers%20regarding%20the%20SSPI%20handshake%20and%20after%20researching%20this%2C%20I%20found%20that%20it's%20most%20likely%20or%20I%20can%20honestly%20say%20it's%20probably%20close%20to%20100%25%20that%20what%20I%20did%20caused%20this%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20took%20the%20same%20server%20and%20brought%20it%20back%20to%202008%20R2%20Domain%20Controller%20status%20but%20what's%20weird%20is%20that%20even%20prior%20to%20completing%20this%20task%2C%20the%20errors%20seemed%20to%20stop...but%20accessing%20some%20of%20our%20applications%20didn't%20work%20until%20I%20fully%20brought%20it%20back.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20goal%20is%20to%20raise%20the%20domain%20functional%20level%20to%202012%20R2%20then%20test%20to%20make%20sure%20that%20the%20new%20DC%20in%20that%20site%20works%20for%20authentication%20of%20the%20SQL%20and%20application%20servers%20running%20there.%20I%20was%20wondering%20if%20shutting%20down%20the%202008%20R2%20DC%20temporarily%20and%20monitoring%20to%20make%20sure%20no%20errors%20are%20thrown%20is%20a%20good%20way%20to%20make%20sure%20my%20environment%20is%20ready%20to%20demote%20the%202008%20R2%20DC%20once%20and%20for%20all%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20any%20help%20I%20can%20get%20and%20thanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2750436%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750464%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750464%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20two%20prerequisites%20to%20introducing%20the%20first%202019%20domain%20controller%20are%20that%20domain%20functional%20level%20needs%20to%20be%202008%20or%20higher%20and%20older%20sysvol%20FRS%20replication%20needs%20to%20have%20been%20migrated%20to%20DFSR%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FStorage-at-Microsoft%2FStreamlined-Migration-of-FRS-to-DFSR-SYSVOL%2Fba-p%2F425405%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FStorage-at-Microsoft%2FStreamlined-Migration-of-FRS-to-DFSR-SYSVOL%2Fba-p%2F425405%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'd%20suggest%20removing%20the%20new%202019%2C%20make%20sure%20prerequisites%20have%20been%20met%2C%20then%26nbsp%3Buse%20dcdiag%20%2F%20repadmin%20tools%20to%20verify%20health%20%3CEM%3E%3CSTRONG%3Ecorrecting%20all%20errors%20found%3C%2FSTRONG%3E%3C%2FEM%3E%20before%20starting%20%3CEM%3E%3CSTRONG%3Eany%3C%2FSTRONG%3E%20%3C%2FEM%3Eoperations.%20Then%20stand%20up%20the%20new%202019%2C%20patch%20it%20fully%2C%20license%20it%2C%20join%20existing%20domain%2C%20add%20active%20directory%20domain%20services%2C%20promote%20it%20also%20making%20it%20a%20GC%20(recommended)%2C%20transfer%20FSMO%20roles%20over%20(optional)%2C%20transfer%20pdc%20emulator%20role%20(optional)%2C%20use%20dcdiag%20%2F%20repadmin%20tools%20to%20again%20verify%20health%2C%20when%20all%20is%20good%20you%20can%20move%20on%20to%20next%20one%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750612%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750612%22%20slang%3D%22en-US%22%3EDave%2C%20thanks%20for%20the%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20going%20to%20look%20into%20the%20FRS%20replication%20migration%20to%20DFSR%20to%20see%20if%20that's%20been%20done%20or%20not%2C%20but%20in%20regards%20to%20removing%20our%202019%20DC.%20The%20issue%20with%20that%20is%20we%20already%20have%20a%20new%202019%20DC%20in%20a%20remote%20office...that's%20a%20physical%20server%20in%20a%20different%20state%20and%20I%20don't%20have%20the%20option%20to%20demote%20it%2C%20downgrade%20OS%20license%20(rebuild%20server)%2C%20then%20promote%20it%20to%20a%20lesser%20OS%20version.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20new%202019%20DC%20that%20I%20just%20put%20into%20another%20site%2C%20the%20one%20that's%20to%20replace%20the%202008%20R2%20that's%20part%20of%20the%20same%20site...that%20one%20I%20can%20remove%20as%20you%20described%20and%20redo%20but%20based%20on%20the%20reasoning%20behind%20your%20initial%20response%20I%20don't%20think%20it's%20going%20to%20matter%20based%20on%20what%20I%20said%20regarding%20the%20other%202019%20DC%20that's%20been%20running%20for%20a%20while%20now%20at%20another%20site.%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20used%20dcdiag%20%2Frepadmin%20tools%20before%20but%20lately%20I've%20been%20using%20the%20AD%20Replication%20Tool%20from%20Microsoft%20which%20did%20not%20show%20any%20errors%20prior%20to%20me%20starting%20this%20project.%20If%20dcdiag%20gives%20me%20different%20info%20then%20sure%20I'll%20do%20both%20not%20a%20problem%20but%20my%20main%20focus%20is%20knowing%20how%20to%20test%20that%20the%20replacement%202019%20DC%20is%20working%20for%20this%20site%20in%20regards%20to%20this%20error%20before%20I%20demote%20the%202008%20R2%20DC%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750630%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750630%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20the%20prerequisites%20have%20not%20been%20met%20then%20there%20is%20no%20choice%20but%20to%20remove%20the%202019%20domain%20controllers.%20Perform%20cleanup%20if%20needed.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fidentity%2Fad-ds%2Fdeploy%2Fad-ds-metadata-cleanup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fidentity%2Fad-ds%2Fdeploy%2Fad-ds-metadata-cleanup%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fitops-talk-blog%2Fstep-by-step-manually-removing-a-domain-controller-server%2Fba-p%2F280564%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fitops-talk-blog%2Fstep-by-step-manually-removing-a-domain-controller-server%2Fba-p%2F280564%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20check%20health%20is%20100%25%20and%20if%20so%20you%20can%20start%20again.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750632%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750632%22%20slang%3D%22en-US%22%3EOne%20more%20thing...all%20DC's%20are%20GC%20enabled%2C%20but%20only%20one%20DC%20has%20all%20the%20FSMO%20roles.%20So%2C%20we%20have%20our%20HQ%20site%2C%20Remote%20Office%20site%2C%20and%20AWS%20site.%20Only%20physical%20DC%20is%20located%20in%20Remote%20Office%2C%20the%20other%20two%20are%20virtual%20DC's.%20The%20one%20located%20at%20our%20office%20is%20the%202012%20R2%20DC%20with%20all%20the%20FSMO%20roles%2C%20so%20my%20plan%20was%20to%20keep%20domain%20functional%20level%20at%202012%20R2%20until%20I'm%20ready%20to%20replace%20this%20one%20in%20the%20future.%20For%20now%2C%20I%20just%20needed%20to%20replace%20the%20DC%20on%20AWS%20due%20to%20it%20being%20EOL%20(2008%20R2).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750653%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750653%22%20slang%3D%22en-US%22%3E%3CP%3E2012%20R2%20DFL%20is%20fine%20and%20whether%20physical%20or%20virtual%20really%20doesn't%20matter.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750703%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750703%22%20slang%3D%22en-US%22%3EAfter%20looking%20at%20the%20links%20you%20provided%2C%20I%20remembered%20I%20did%20use%20this%20same%20site%20for%20my%20FRS%20to%20DFRS%20migration%20and%20it%20completed%20successfully.%20I%20had%20to%20do%20this%20prior%20to%20adding%20my%20first%202019%20DC.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750707%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750707%22%20slang%3D%22en-US%22%3E%3CP%3EThree%20right%3F%20Please%20run%3B%3C%2FP%3E%0A%3CP%3EDcdiag%20%2Fv%20%2Fc%20%2Fd%20%2Fe%20%2Fs%3A%25computername%25%20%26gt%3BC%3A%5Cdcdiag.log%3CBR%20%2F%3Erepadmin%20%2Fshowrepl%20%26gt%3BC%3A%5Crepl.txt%3CBR%20%2F%3Eipconfig%20%2Fall%20%26gt%3B%20C%3A%5Cdc1.txt%3CBR%20%2F%3Eipconfig%20%2Fall%20%26gt%3B%20C%3A%5Cdc2.txt%3CBR%20%2F%3Eipconfig%20%2Fall%20%26gt%3B%20C%3A%5Cdc3.txt%3CBR%20%2F%3E%3CBR%20%2F%3Ethen%20put%20%3CEM%3E%3CSTRONG%3Eunzipped%3C%2FSTRONG%3E%20%3C%2FEM%3Etext%20files%20up%20on%20%3CA%20href%3D%22https%3A%2F%2Fonedrive.live.com%2Fabout%2Fen-us%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOneDrive%3C%2FA%3E%20and%20share%20a%20link.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2750788%22%20slang%3D%22en-US%22%3ERe%3A%20SSPI%20handshake%20failed%20with%20error%20code%200x80090311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2750788%22%20slang%3D%22en-US%22%3E%3CP%3ERun%20these%20commands%20on%20each%20DC%3F%26nbsp%3B%20Also%2C%20these%20results%20will%20show%204%20DC's%20since%20the%202008%20R2%20DC%20is%20currently%20running%20but%20it's%20the%20one%20that%20I%20want%20to%20eventually%20remove%20which%20will%20leave%20me%20with%20the%20other%203...thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

The full error I'm getting:

SSPI handshake failed with error code 0x80090311, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. No authority could be contacted for authentication.

 

I was configuring a new server as a 2019 Domain Controller to replace a 2008 R2 one. In addition I have two other DC's for a total of 3. All in different sites.

 

One with all FSMO roles which is what is referred to as PDC back in the day running 2012 R2. The other running Windows Server 2019 and now the new one that I mentioned above that replaced the 2008 R2 also running 2019.

 

The problem I ran into is that I forgot to raise the domain functional level from 2008 R2 to 2012 R2 before I demoted it. Once that happened I started to receive errors from a couple of servers regarding the SSPI handshake and after researching this, I found that it's most likely or I can honestly say it's probably close to 100% that what I did caused this error.

 

So, I took the same server and brought it back to 2008 R2 Domain Controller status but what's weird is that even prior to completing this task, the errors seemed to stop...but accessing some of our applications didn't work until I fully brought it back.

 

My goal is to raise the domain functional level to 2012 R2 then test to make sure that the new DC in that site works for authentication of the SQL and application servers running there. I was wondering if shutting down the 2008 R2 DC temporarily and monitoring to make sure no errors are thrown is a good way to make sure my environment is ready to demote the 2008 R2 DC once and for all?

 

I appreciate any help I can get and thanks in advance!

23 Replies

The two prerequisites to introducing the first 2019 domain controller are that domain functional level needs to be 2008 or higher and older sysvol FRS replication needs to have been migrated to DFSR
https://techcommunity.microsoft.com/t5/Storage-at-Microsoft/Streamlined-Migration-of-FRS-to-DFSR-SYS...

 

I'd suggest removing the new 2019, make sure prerequisites have been met, then use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new 2019, patch it fully, license it, join existing domain, add active directory domain services, promote it also making it a GC (recommended), transfer FSMO roles over (optional), transfer pdc emulator role (optional), use dcdiag / repadmin tools to again verify health, when all is good you can move on to next one
 

 

Dave, thanks for the reply.

I'm going to look into the FRS replication migration to DFSR to see if that's been done or not, but in regards to removing our 2019 DC. The issue with that is we already have a new 2019 DC in a remote office...that's a physical server in a different state and I don't have the option to demote it, downgrade OS license (rebuild server), then promote it to a lesser OS version.

The new 2019 DC that I just put into another site, the one that's to replace the 2008 R2 that's part of the same site...that one I can remove as you described and redo but based on the reasoning behind your initial response I don't think it's going to matter based on what I said regarding the other 2019 DC that's been running for a while now at another site.

I've used dcdiag /repadmin tools before but lately I've been using the AD Replication Tool from Microsoft which did not show any errors prior to me starting this project. If dcdiag gives me different info then sure I'll do both not a problem but my main focus is knowing how to test that the replacement 2019 DC is working for this site in regards to this error before I demote the 2008 R2 DC?

If the prerequisites have not been met then there is no choice but to remove the 2019 domain controllers. Perform cleanup if needed.

https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup
https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-manually-removing-a-domain-contr...

 

Then check health is 100% and if so you can start again.

 

 

 

 

One more thing...all DC's are GC enabled, but only one DC has all the FSMO roles. So, we have our HQ site, Remote Office site, and AWS site. Only physical DC is located in Remote Office, the other two are virtual DC's. The one located at our office is the 2012 R2 DC with all the FSMO roles, so my plan was to keep domain functional level at 2012 R2 until I'm ready to replace this one in the future. For now, I just needed to replace the DC on AWS due to it being EOL (2008 R2).

2012 R2 DFL is fine and whether physical or virtual really doesn't matter.

 

 

 

After looking at the links you provided, I remembered I did use this same site for my FRS to DFRS migration and it completed successfully. I had to do this prior to adding my first 2019 DC.

Three right? Please run;

Dcdiag /v /c /d /e /s:%computername% >C:\dcdiag.log
repadmin /showrepl >C:\repl.txt
ipconfig /all > C:\dc1.txt
ipconfig /all > C:\dc2.txt
ipconfig /all > C:\dc3.txt

then put unzipped text files up on OneDrive and share a link.

 

Run these commands on each DC?  Also, these results will show 4 DC's since the 2008 R2 DC is currently running but it's the one that I want to eventually remove which will leave me with the other 3...thanks.

Run first two on any healthy DC, if there are four then include a file for the fourth as well.

 

 

I got all the files ready to share via a copied link from OneDrive. What email address do I share it with?

You can just post a link here, or send me a message

About Dave Patrick - Microsoft Tech Community

 

 

 

 

Am I missing something here? wouldn't that make the link accessible to anyone? If I share it here and the link allows for edit permissions then anyone with this link can see and access the files.

The files should be harmless but message me the link if you like.

 

 

 

I just sent it to you via private message, thanks.
best response confirmed by A-CAST (Occasional Contributor)
Solution

- ACEPDC7 is DHCP assigned which is a no-no for a domain controller. After assigning a static address I'd do ipconfig /flushdns, ipconfig /registerdns, restart the netlogon service.

- ACEPDC4 is DHCP assigned which is a no-no for a domain controller. After assigning a static address I'd do ipconfig /flushdns, ipconfig /registerdns, restart the netlogon service.

- ACEPDC5 -> ACEPDC4 5012 errors
https://social.technet.microsoft.com/wiki/contents/articles/1205.dfsr-event-5012-dfs-replication.asp...
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc...

- ACEPDC6 event logs cannot be queried because of RPC, so I'd check the logs for possible errors

- ACEPDC7 event logs cannot be queried because of RPC, so I'd check the logs for possible errors

- ACEPDC4 has replication problems. I'd check the event logs for error details (may be related to DHCP assignment)

 

 (please don't forget to mark helpful replies)

 

 

 

The DHCP on DC7 is the way servers are configured on AWS, but it still uses the same static IP assigned to it, this is how all of our servers operate as EC2 instances on AWS which we have configured using a VPC back to our on-premise domain. DC4 is the same thing...both on AWS but this is the server I'm trying to get rid of once all is clear with errors, etc.

I'll look through the rest of them and see what I can do to clear those RPC and 5012 errors. I'll definitely mark this as helpful/best response but the main question I had hasn't been answered, but I guess it can't until all is cleared and then I guess I have no choice but to demote DC4 again and see what happens...I guess deal with the errors from there if any and resolve them rather than trying to add it back as a DC.

Ok, then as long as the ip address is not changing on those two it should be Ok, but the other issues need to be cleared up specifically the system and dfs replication event logs should be clear of errors on all four. If problems persist after cleaning up event logs put up a new set of files to look at.

 

 

Ok, will do and thank you for all of your help

You're welcome. Another tip: the system and dfs event logs prior to last boot are of no use to me so when I'm building a new one I like to clear out the logs just prior to reboot so a quick look I don't need to decide if an error was before or after last boot. Another reason to clear is dcdiag will query the last 24 hours so something that shows there may have been before last boot and no longer a problem.