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