From dc4ef9b57b7e5f6f44ccf799a26b497c6025609b Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 25 Jan 2012 10:00:31 +1100 Subject: [PATCH] dlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in token --- source4/dns_server/dlz_bind9.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.11.4.GIT