I need to be able to use GetTokenInformation() on tokens created by
LogonUser() using the LOGON32_LOGON_NEW_CREDENTIALS logon type. Since
GetTokenInformation() isn't a network call, I get back information from the
token of the original user, rather than the user whose credentials were used
in the call to LogonUser().
How can I get the "network" token information?
Thanks,
-Nick
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"Nick Burkitt" <nick.b...@newsgroups.nospam> wrote in message
news:02297C95-7922-4B61...@microsoft.com...
Thanks for the post. I'm trying to get the user, group, and privilege
information (TokenUser, TokenGroups, and TokenPrivileges) for the token that
will be used in a call to CreateProcessAsUser(). It's partly for validation,
partly for display/debugging purposes.
-Nick
-Nick
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"Nick Burkitt" <nick.b...@newsgroups.nospam> wrote in message
news:D9FAA970-A1DB-420F...@microsoft.com...
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"Eric Perlin [MSFT]" <EricPer...@discussions.microsoft.com> wrote in
message news:F2B0060A-931D-4E09...@microsoft.com...
How about this issue now? Does the replies make sense to you?
The groups would not be calculated until an actual authentication were
attempted with the credentials, and then only on the remote machine(s) that
you connect to. On the machine where you call LogonUser with
LOGON32_LOGON_NEW_CREDENTIALS, it's not even known whether the credentials
supplied are valid, or even if the authenticating authority even exists.
For example, run this on your computer right now:
RUNAS /NETONLY /U:FAKEDOMAIN\FAKEUSER CMD.EXE
It will prompt you for a password, then start CMD.EXE in a new logon
session. The credentials you enter are retained, but aren't used for
anything until you attempt remote (SSPI) authentication. It's impossible
to know on the local machine what groups the user may be a member of on the
remote machine.
Hope this helps.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
How about this issue now? Does our replies make sense to you? If you still
have anything unclear or need any help, please feel free to feedback.
Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================