From e49656e2ee596a481277a5a2c3dd5d3969411c19 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 3 Jun 2012 22:34:13 +1000 Subject: auth: Use only security_token_is_system to determine that a user is SYSTEM This removes the duplication on how to detect that a user is system in Samba now that the smbd system account is also only SID_NT_SYSTEM we can use the same check everywhere. Andrew Bartlett Signed-off-by: Andreas Schneider --- source3/auth/auth_util.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 91fecfedbf..2ac46e6c5f 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -506,8 +506,6 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, session_info->unix_info->sanitized_username = talloc_strdup(session_info->unix_info, tmp); - session_info->unix_info->system = server_info->system; - if (session_key) { data_blob_free(&session_info->session_key); session_info->session_key = data_blob_talloc(session_info, @@ -1047,8 +1045,6 @@ static NTSTATUS make_new_session_info_system(TALLOC_CTX *mem_ctx, return status; } - (*session_info)->unix_info->system = true; - TALLOC_FREE((*session_info)->security_token->sids); (*session_info)->security_token->num_sids = 0; -- cgit