Example #1
0
 public bool IsSIDInUsersGroup(IIdentity user, SidWrapper sidToCheck)
 {
     var winId = (WindowsIdentity) user;
     return winId.Groups.Any(g => g == sidToCheck.Sid);
 }
Example #2
0
 public virtual bool AreSame(SidWrapper other)
 {
     return Sid == other.Sid;
 }