From 4e2384e2426745023553afb21270165872c61b02 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 13 Apr 2010 18:24:43 +1000 Subject: s4:auth Allow the simple 'struct auth_session_info' generator for all users This code isn't ideal, but it is better than needing to consult the main SamDB in things like a torture test. Andrew Bartlett --- source4/auth/system_session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/auth') diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c index 9b9268de95..4df96884ca 100644 --- a/source4/auth/system_session.c +++ b/source4/auth/system_session.c @@ -109,9 +109,9 @@ static NTSTATUS create_token(TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } - DEBUG(0, ("Created token was not system or anonymous token!")); - *token = NULL; - return NT_STATUS_INTERNAL_ERROR; + /* All other 'users' get a empty priv set so far */ + ptoken->privilege_mask = 0; + return NT_STATUS_OK; } static NTSTATUS generate_simple_session_info(TALLOC_CTX *mem_ctx, -- cgit