Beispiel #1
0
        public void Parse31bSid()
        {
            var domainSid = new SecurityIdentifier(IdentifierAuthority.AadAuthority, new uint[] { 3579221639, 4203588899, 1178257358, 1362520493 }, 0).ToRpcSid();
            var userId    = 4176169732;

            var sid = SecurityIdentifier.FromRpcSid(domainSid, userId);

            Assert.AreEqual("S-1-12-3579221639-4203588899-1178257358-1362520493-4176169732", sid.Value);
        }