Where are SPNs stored in AD?

John Savill

May 23, 2007

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Each object has a servicePrincipalName attribute, which is a multivalue attribute in which all SPNs are stored. You can use ADSI Edit to view the attribute. If the SPN is for a machine's local System account, the SPN would be stored in the servicePrincipalName attribute of the Computers account in AD. You shouldn't write to this value directly. It should be updated only via the DsWriteAccountSpn call (but you can update it directly by using tools such as ADSI Edit).

When a client requests a connection to a service, the Key Distribution Center (KDC) searches the forest for a user or computer account for which the SPN is registered. If the KDC finds registration in more than one account, the request for authentication fails, indicating a rogue service registration

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like