Inside Kerberos - 7: Wrap up - Nero Blanco IT Migration Specialists
-
Twan van Beers
-
17 May, 2018
Alright, we’ve covered a lot of ground, but let’s wrap up by grabbing our original questions and answering the
1. Why is there a problem with SIDHistory and Domain Local Groups, and exactly what is the problem?
We’ve seen that Domain Local groups can have sid-history applied from one domain to another, this allows for any resources that have been moved from the source domain to the target domain to continue to be accessed without re-ACLing the data. It also allows migrated users to continue to get the source Domain Local groups added to their PAC by the trusting domain due to the user’s or their Global/Universal group’s sid-history.
The big thing to remember is that the addition of Domain Local Groups to the PAC is done by the KDC in the same domain as the service, therefore it can only use the user’s SID or SIDs from global/universal groups to try to find Domain Local Groups or permissions in the resource domain.
The two things it does NOT allow are:
- Migrate the source data (permissioned with Domain Local Groups) to a different trusting forest without also copying the Domain Local Groups, and expecting access to still be maintained
- Adding new users to the target domain, adding them directly into Domain Local Groups and expecting sid-history to grant them access to the source data that are permissioned with Domain Local Groups
2. Why is there a 64 KB limit on tokens, and exactly what is it counting towards that size?
The Kerberos structures themselves have no such limit on the size of a ticket or underlying structures. The only place where I can assume that this limit applies is the size of the PAC which forms part of the tickets. 64 KB happens to match a single data page within a 16-bit OS… of course this could be purely coincidence…
3. Why is there a limit of 1024 groups in an Access Token and where does it become a problem?
This is again a disappointing answer, as I can find no authoritative reason for a limit of 1024 groups. The data structures do not seem to limit the Access Token in this way, so I can only assume some hard-coded limit within the LSA itself that hasn’t been changed for fear of breaking backward compatibility.
Avoiding this 1024 group limit is critical as there are few ways around it. If you have a particular resource like a file server that is causing a massive number of Domain Local Groups, then perhaps you can move that File Server to a resource domain which may give you a bit more breathing space since those Domain Local Groups are only added when traversing the trust, and it will drop any Domain Local Groups from the user’s forest in the process.
Of course the most likely culprit is sid-history, so cleaning up sid-history is not just an option, it should be a pretty urgent goal and part of every migration.
Ultimately once you hit this limit then you won’t be able to log on (unless you’re the Administrator account and are in Safe Mode) and you will get an error saying ‘too many context ids’
I hope you’ve enjoyed this multipart series on Kerberos! Let me know if you find any errors, omissions or want to chew the fat 🙂
Twan van Beers
Twan is a senior consultant with over 30 years of experience. He has a wide range of skills including Messaging, Active Directory, SQL, Networking and Firewalls. Twan loves to write scripts and get deep and dirty into debugging code, in order to understand and resolve the most complex of problems.
News & Insights
Trusted insights on technology and innovation to power your business growth.
-
03/06/2026
A practical engineering guide to owners, assignment, consent, credentials and ...
Read More
-
19/05/2026
Domain migrations in Microsoft 365 are rarely as simple as shifting email ...
Read More
-
12/05/2026
Over the past 10 to 15 years, Microsoft 365 has fundamentally reshaped how ...
Read More
-
07/05/2026
Yesterday we had an all company meeting and I thought it would be cool to kick ...
Read More
-
07/05/2026
Planning a tenant-to-tenant migration? Talk to us
Read More
-
31/03/2026
In tenant-to-tenant (T2T) and Google-to-Microsoft 365 migration projects, ...
Read More
-
27/03/2026
You’d think this would be easy and not an uncommon request. There are genuine ...
Read More
-
23/03/2026
Managing Google to Microsoft Migration with GAM7 and PowerShell
Read More
-
16/03/2026
When a user leaves an organisation in Microsoft 365, administrators have ...
Read MoreSubscribe to our newsletter for the latest updates and insights.
Like what you see? Stay in touch! Subscribers to our email list are among the first to receive the latest news, views and updates from Nero Blanco
Inside Kerberos - 7: Wrap up - Nero Blanco IT Migration Specialists">