An eight-part series on SQL Server identity, from the bytes up.

It explains what a SID is, what happens when a service account is deleted and recreated, how to migrate logins with their SIDs and passwords intact, how to script every permission a principal holds, and how Windows group membership hides who can connect. The last three parts cover SPNs and the fallback from Kerberos to NTLM, RC4 encryption in Kerberos tickets, and a login audit built on Service Broker.
- Logins, SIDs, and Kerberos from First Principles, Part 1: What a SID Actually Is
- Logins, SIDs, and Kerberos from First Principles, Part 2: The Vanishing Service Account
- Logins, SIDs, and Kerberos from First Principles, Part 3: Migrating Logins Without Losing Them
- Logins, SIDs, and Kerberos from First Principles, Part 4: Scripting Every Permission a Principal Holds
- Logins, SIDs, and Kerberos from First Principles, Part 5: Windows Groups and the Invisible Members
- Logins, SIDs, and Kerberos from First Principles, Part 6: SPNs and the Silent NTLM Fallback
- Logins, SIDs, and Kerberos from First Principles, Part 7: Is Your Kerberos Still Using RC4?
- Logins, SIDs, and Kerberos from First Principles, Part 8: Auditing Logins with Service Broker
Questions or corrections are welcome on Bluesky or LinkedIn. See all series on this blog.