d***@umich.edu
2006-08-29 17:47:07 UTC
Help!
Here's the situation: I am creating a VBScript login script that
provides network resources based on the user's group membership. I'm
working with two domains, both with a trust between them. I've done
enough research to know that the TokenGroups property does not get
populated with groups in the other trusted domain.
So, for a user that logs into one domain from the other, I know that
the 1st step is to build a list of the user's local group memberships.
I know how to get the primary group object based on the PrimaryGroupID
property, and I've created a WalkGroups sub to recursively build a list
of local groups that the user is a member of.
That part that I'm confused about is how to link the user's local SIDs
to the Trusted Domain's Foreign Security Principal objects. I have a
function to return a hex formated string of an Object's SID and a
function to return the SDDL sid. I'm assuming I have to pull up a
collection of the FSP objects in the Trusted Domain, and then loop
through to see if the FSP's sid matching any of the user's SIDs? I was
hoping that I could just search AD through an ADODB connection for all
FSP's where the Object's SID is in a range of sids from my initial
compilation.
What am I missing? What is the best practice way to link up SIDs to
Trusted Domain FSPs? Once I get the FSPs that pertain to a user, I can
just recursively run through the Objects MemberOf property and go from
there.
Thank You,
-Dave Fribley
Here's the situation: I am creating a VBScript login script that
provides network resources based on the user's group membership. I'm
working with two domains, both with a trust between them. I've done
enough research to know that the TokenGroups property does not get
populated with groups in the other trusted domain.
So, for a user that logs into one domain from the other, I know that
the 1st step is to build a list of the user's local group memberships.
I know how to get the primary group object based on the PrimaryGroupID
property, and I've created a WalkGroups sub to recursively build a list
of local groups that the user is a member of.
That part that I'm confused about is how to link the user's local SIDs
to the Trusted Domain's Foreign Security Principal objects. I have a
function to return a hex formated string of an Object's SID and a
function to return the SDDL sid. I'm assuming I have to pull up a
collection of the FSP objects in the Trusted Domain, and then loop
through to see if the FSP's sid matching any of the user's SIDs? I was
hoping that I could just search AD through an ADODB connection for all
FSP's where the Object's SID is in a range of sids from my initial
compilation.
What am I missing? What is the best practice way to link up SIDs to
Trusted Domain FSPs? Once I get the FSPs that pertain to a user, I can
just recursively run through the Objects MemberOf property and go from
there.
Thank You,
-Dave Fribley