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