summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-16 13:27:16 +0200
committerVolker Lendecke <vl@samba.org>2008-06-16 13:27:47 +0200
commitfdcf760d1c3bd83570f55972930226ecbc5e028b (patch)
tree774407b7cbc70a8700e56871e009034b96a7c1ad /source3
parent9c1f5894a50fb83e8f884148a3a4fedc4efd44fe (diff)
downloadsamba-fdcf760d1c3bd83570f55972930226ecbc5e028b.tar.gz
samba-fdcf760d1c3bd83570f55972930226ecbc5e028b.tar.bz2
samba-fdcf760d1c3bd83570f55972930226ecbc5e028b.zip
Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reporting
(cherry picked from commit 996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb) (This used to be commit 1f86c7a2a19e66948c9b51572d3c078b6e03ef52)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c2
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;