if (dom_sid_equal(&group_ace->trustee, &global_sid_World))
return True;
- /*
- * if we have session info in conn, we already have the (SID
- * based) NT token and don't need to do the complex
- * user_in_group_sid() call
- */
- if (conn->session_info) {
- security_token = conn->session_info->security_token;
- /* security_token should not be NULL */
- SMB_ASSERT(security_token);
- is_sid = security_token_is_sid(security_token,
- &uid_ace->trustee);
- if (is_sid) {
- has_sid = security_token_has_sid(security_token,
- &group_ace->trustee);
-
- if (has_sid) {
- return true;
- }
+ security_token = conn->session_info->security_token;
+ /* security_token should not be NULL */
+ SMB_ASSERT(security_token);
+ is_sid = security_token_is_sid(security_token,
+ &uid_ace->trustee);
+ if (is_sid) {
+ has_sid = security_token_has_sid(security_token,
+ &group_ace->trustee);
+
+ if (has_sid) {
+ return true;
}
-
}
/*