From fdcf760d1c3bd83570f55972930226ecbc5e028b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 16 Jun 2008 13:27:16 +0200 Subject: Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reporting (cherry picked from commit 996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb) (This used to be commit 1f86c7a2a19e66948c9b51572d3c078b6e03ef52) --- source3/rpc_server/srv_lsa_nt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index 7c33bd0d4f..7be139d372 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -491,7 +491,9 @@ NTSTATUS _lsa_EnumTrustDom(pipes_struct *p, if (!(info->access & LSA_POLICY_VIEW_LOCAL_INFORMATION)) return NT_STATUS_ACCESS_DENIED; + become_root(); nt_status = pdb_enum_trusteddoms(p->mem_ctx, &num_domains, &domains); + unbecome_root(); if (!NT_STATUS_IS_OK(nt_status)) { return nt_status; -- cgit