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 --- source4/auth/unix_token.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source4/auth') diff --git a/source4/auth/unix_token.c b/source4/auth/unix_token.c index 7a7d464f0d..38109452a4 100644 --- a/source4/auth/unix_token.c +++ b/source4/auth/unix_token.c @@ -142,8 +142,6 @@ NTSTATUS auth_session_info_fill_unix(struct wbc_context *wbc_ctx, session_info->unix_info = talloc_zero(session_info, struct auth_user_info_unix); NT_STATUS_HAVE_NO_MEMORY(session_info->unix_info); - session_info->unix_info->system = security_token_is_system(session_info->security_token); - session_info->unix_info->unix_name = talloc_asprintf(session_info->unix_info, "%s%s%s", session_info->info->domain_name, lpcfg_winbind_separator(lp_ctx), -- cgit