public void SecurityIdentifierExtensions_GetRid_UserSID()
        {
            SecurityIdentifier sid = new SecurityIdentifier("S-1-5-21-3180365339-800773672-3767752645-500");
            int rid = sid.GetRid();

            Assert.AreEqual(500, rid);
        }
示例#2
0
        public SamUser OpenUser(SecurityIdentifier sid, SamUserAccessMask desiredAccess)
        {
            int rid = sid.GetRid();

            return(this.OpenUser(rid, desiredAccess));
        }