As companies get acquired or you migrate off different platforms to AD, there can be quite a mess in terms of Domains and Forests. Lots of ambitious IT folks try and keep a handle on this and consolidate domains quickly as things change. This is a great idea, and keeping things simple is definately the way to go.
What some IT folks have run into is the evil nemesis: SharePoint. Specifically the fact that SharePoint keeps its own database of users based on a combination of domain\username and SID. When a user is migrated from domain to domain, both the domainname\username and SID change and SharePoint needs to be updated or there will be a mismatch of SharePoint’s database and Portal, Team and MySite ACL’s won’t be accurate making them inaccessible.
Alas, SPS and WSS SP2 expose a migrate function in the API. STSADM.EXE has a migrateuser switch that allows you to migrate WSS users. SPS of course rarely supplies any meaningful command line tools for migration. But, Keith Richie has written a tool called SPSUserUtil, included on the SharePoint Utility Suite that uses the object model to allow you to migrate users from the command line.
In our scenario, we were migrating batches of users every night and needed to make a smooth transition within SharePoint. So, we ran through these basic steps each night:
Make sure and test this in your scenario, but it should give you a jumpstart on fighting with SharePoiont during domain consolidations.