summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-25 21:29:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:15 -0500
commit77965f6cf6997a6af7fe3cb225b3fb5ced9acd4a (patch)
tree02f066c7d09bc8cc4a64a354c1c5e16e2f471aea /source3/rpc_server
parent14b16baf69aff50dbeb537a7d09236ca66a6568d (diff)
downloadsamba-77965f6cf6997a6af7fe3cb225b3fb5ced9acd4a.tar.gz
samba-77965f6cf6997a6af7fe3cb225b3fb5ced9acd4a.tar.bz2
samba-77965f6cf6997a6af7fe3cb225b3fb5ced9acd4a.zip
r13138: old fix I forgot to commit
need to access info when using the ldap backend (This used to be commit 80c0625667f28253e9b6f1ac1a5c88aa8261f9b0)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 8f8c035c9c..2f9d494a26 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -4495,8 +4495,11 @@ NTSTATUS _samr_set_groupinfo(pipes_struct *p, SAMR_Q_SET_GROUPINFO *q_u, SAMR_R_
if (!NT_STATUS_IS_OK(r_u->status = access_check_samr_function(acc_granted, SA_RIGHT_GROUP_SET_INFO, "_samr_set_groupinfo"))) {
return r_u->status;
}
-
- if (!get_domain_group_from_sid(group_sid, &map))
+
+ become_root();
+ ret = get_domain_group_from_sid(group_sid, &map);
+ unbecome_root();
+ if (!ret)
return NT_STATUS_NO_SUCH_GROUP;
ctr=q_u->ctr;