From: Andrew Bartlett Date: Thu, 29 Dec 2011 01:00:21 +0000 (+1100) Subject: s4-gensec Remove fallback for simple privileges X-Git-Tag: tevent-0.9.15~581 X-Git-Url: http://git.samba.org/?p=ddiss%2Fsamba.git;a=commitdiff_plain;h=3f5d30c8cb98b855e349e794fe224f10f8af1c10 s4-gensec Remove fallback for simple privileges This makes the dependencies simpler, as this code path is no longer required. (That is, it makes no sense to have an NTLM login without an auth context, and the gensec_gssapi and gensec_krb5 modules call the PAC blob function below instead). Andrew Bartlett --- diff --git a/source4/auth/gensec/gensec_util.c b/source4/auth/gensec/gensec_util.c index 2b890239b05..d767f902d69 100644 --- a/source4/auth/gensec/gensec_util.c +++ b/source4/auth/gensec/gensec_util.c @@ -50,12 +50,8 @@ NTSTATUS gensec_generate_session_info(TALLOC_CTX *mem_ctx, session_info_flags, session_info); } else { - session_info_flags |= AUTH_SESSION_INFO_SIMPLE_PRIVILEGES; - nt_status = auth_generate_session_info(mem_ctx, - NULL, - NULL, - user_info_dc, session_info_flags, - session_info); + DEBUG(0, ("Cannot generate a session_info without the auth_context\n")); + return NT_STATUS_INTERNAL_ERROR; } return nt_status; }