I don't like the where my code is going, so I figured I would ask some guidance.
I need to enumerate all the users and groups when I'm pointed to a child domain.
Our product needs to load users and groups for very high-speed group membership checking so we can't query the AD in real time. Normally, this isn't a problem since we can enumerate users and groups just fine when pointing at the PDC.
But...when pointing at a child domain our code is loading the users and groups from the child but not the trusted parent.
Right now, it seems to me that I have to:
1. enumerate all the users and global groups of the child domain
2. figure out what domains the child trusts and then enumerate all the users and global groups for each one.
There has to be a easier way. Any ideas?