diff options
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |