RE: How to tell if domain\user is a local user or domain user?
From: Ele7eN (Ele7eN_at_discussions.microsoft.com)
Date: 05/19/05
- Previous message: John_L_S: "SEC_E_UNTRUSTED_ROOT"
- In reply to: wzhao2000_at_yahoo.com: "How to tell if domain\user is a local user or domain user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 19 May 2005 12:47:05 -0700
If you also have the user's SID, then you can tell if it is part of the
domain or not. The first half of the SID is domain-specific. All objects in
the domain begin with the same string. If the first half of the SID is
different from a known domain user's SID, then you know that it is not part
of the domain.
"wzhao2000@yahoo.com" wrote:
> Hello, there,
>
> I got a user name from LookupAccountSid in format of Domain\User. But
> the domain part could also be a computer name (i.e., a local user
> instead of domain user). Is there a way to tell if this user is a
> domain user?
>
> Thanks!
>
>
- Previous message: John_L_S: "SEC_E_UNTRUSTED_ROOT"
- In reply to: wzhao2000_at_yahoo.com: "How to tell if domain\user is a local user or domain user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|