This is already handled by set_sec_ctx() below, we just have to pass in the
values instead of setting it here in this function before calling set_sec_ctx().
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
}
}
- /*Set current_user since we will immediately also call set_sec_ctx() */
- current_user.ut.ngroups = num_groups;
- current_user.ut.groups = group_list;
-
set_sec_ctx(uid,
gid,
- current_user.ut.ngroups,
- current_user.ut.groups,
+ num_groups,
+ group_list,
conn->session_info->security_token);
current_user.conn = conn;