I got the following problem:
User "u" is member in group "g-a", group "g-a" is member in group "g-b", and group "g-b" is member in group "g-c".
Having a given user (the currently logged on user) I want to find out what groups this user belongs to (including membership thru nested groups).
In our example user "u" is member of "g-a", "g-b", "g-c".
(I think) I know how to use ADSI to do different things, but I havent found a way to perform the task mentioned above. The algorithm has to be fast (even in large domains or Active Directories) and has to be executable for domains (NT4) and Active Directory (W2k+).
Maybe anybody knows how Windows itself knows, what groups the logged in user belongs to. I guess it has to know it somehow, otherwise it wouldnt be able to check security for the filesystem, and so on...
Help would be very appreciated!!
Thanks in advance,