/* check if this is a "Unix Users" domain user,
* we need to handle it in a special way if that's the case */
- if (dom_sid_compare_domain(user_sid, &global_sid_Unix_Users) == 0) {
+ if (sid_check_is_in_unix_users(user_sid)) {
/* in info3 you can only set rids for the user and the
* primary group, and the domain sid must be that of
* the sam domain.
/* check if this is a "Unix Groups" domain group,
* if so we need special handling */
- if (dom_sid_compare_domain(group_sid, &global_sid_Unix_Groups) == 0) {
+ if (sid_check_is_in_unix_groups(group_sid)) {
/* in info3 you can only set rids for the user and the
* primary group, and the domain sid must be that of
* the sam domain.