Freigeben über


SPN and user name/password errors when trying to add an additional AD FS server with a Group Managed Service Account

In a recent case, we hit the issue detailed very well in the following blog post.

Error when adding second 2012R2 AD FS server when using gMSA
https://ril3y.wordpress.com/2014/08/19/error-when-adding-second-2012r2-ad-fs-server-when-using-gmsa/

Essentially, there needs to be a trio of conditions met:

  • The AD FS server being set up is not the first AD FS server in the farm.
  • The AD FS service is being run under a Group Managed Service Account (gMSA).
  • There are no Windows 2012 R2 DCs in the site where the new AD FS server is being set up.

If these conditions are met, you may be presented with the following errors during install.

  • There were no SPNs set on the following service account '<ServiceAccount>'. Specify the service account used to configure the other Federation servers in the farm, or set host SPN for the farm on the service account.
  • The user name or password is incorrect
  • Unable to determine the Service SPN. There were no SPNs set on the following service account '<ServiceAccount>'. Specify the service account used to configure the other Federation servers in the farm, or set host SPN for the farm on the service account.
  • Unable to retrieve configuration from the primary server. The user name or password is incorrect
  • One or more prerequisites failed. Please fix these issues and click "Rerun prerequisite check"

 

In this scenario, there was no possibility of getting a 2012 R2 DC in the new AD FS server's site. So, we started looking for work arounds.

We set the following registry key to hard code the new AD FS server to a specific site and override automatic site lookup.

Path= HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\
Name= SiteName (String)
Value= <Name of the Site where the 2012 R2 DC is located>

After setting this new registry value, we rebooted the server.
We configured the server as a new AD FS server in an existing farm, still using the gMSA account.  This time the configuration wizard completed successfully.

We removed the SiteName registry value and rebooted. The AD FS service started just fine.

:0)
-Joel

Shout out to Giles Pauli for all the help on how to manipulate site determination.

Comments

  • Anonymous
    September 08, 2016
    Joel,Thank you for outlining the conditional requirements necessary to obtain the error.Nicely Done!Boyd G.
  • Anonymous
    April 26, 2018
    Thanks a lot.