EqualSid

From: Joe Arnon (JoeArnon_at_discussions.microsoft.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 07:41:17 -0800

Hi, How do I compare a given Sid to the Administartos sid or the System use
sid? I cannot use IsWellKnownSid() for my program runs on Windows2000. So I
need to use EqualSid(). How do I build the Administrators Group Sid or the
system user sid? Can you give me the code in c++.
Thanks in advance,
Joe



Relevant Pages

  • Re: Get local built-in administrators name
    ... >get the user's SID, ... Use WinAccountAdministratorSid instead of WinBuiltinAdministratorsSid. ... IsWellKnownSid is XP only, so here's an example that I ...
    (microsoft.public.vc.language)
  • list users
    ... I thougt to use the lengt of the sid, because all the new accounts have ... But I can't the length in bytes of the sids to compare, ... I'm new on scripting so I thing I'm doing a basic question error, ... Anyone knows how can I list the users or get the sidlenght for making a ...
    (microsoft.public.scripting.vbscript)
  • Re: Check Permission On File/Folder For a Given User
    ... >> then compare it with the SID in the list of ACE in DACL for the ... >> ACEs in DACL, rather the SID of the group he belongs to. ... >> Instead of going through the groups the user is member of to compare the ...
    (microsoft.public.dotnet.security)
  • Re: Check SID for GROUP membership
    ... elif PrimSID memberof SecondSID ... But you ask that you seek a way to compare SID, ...
    (microsoft.public.win2000.security)
  • Re: Cannot access NT 4 domain after user accounts migration
    ... Their old SID is stored in an attribute called sIDHistory, ... You need to compare the sIDHistory attribute against ... > the source SID. ...
    (microsoft.public.windows.server.active_directory)