From: Amitay Isaacs Date: Tue, 24 Jan 2012 23:00:31 +0000 (+1100) Subject: dlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in token X-Git-Tag: tevent-0.9.15~260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc4ef9b57b7e5f6f44ccf799a26b497c6025609b;p=thirdparty%2Fsamba.git dlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in token --- diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index 549ae0df554..6f6b1da32e6 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -494,7 +494,12 @@ static NTSTATUS b9_generate_session_info_pac(struct auth4_context *auth_context, return status; } + if (user_info_dc->info->authenticated) { + session_info_flags |= AUTH_SESSION_INFO_AUTHENTICATED; + } + session_info_flags |= AUTH_SESSION_INFO_SIMPLE_PRIVILEGES; + status = auth_generate_session_info(mem_ctx, NULL, NULL, user_info_dc, session_info_flags, session_info); if (!NT_STATUS_IS_OK(status)) {