summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_util.c b/source3/rpc_server/srv_util.c
index 504e6a83c0..5bb8db4e06 100644
--- a/source3/rpc_server/srv_util.c
+++ b/source3/rpc_server/srv_util.c
@@ -149,7 +149,11 @@ NTSTATUS get_alias_user_groups(TALLOC_CTX *ctx, DOM_SID *sid, int *numgroups, ui
for (i=0;i<num_groups;i++) {
- if (!get_group_from_gid(groups[i], &map)) {
+ become_root();
+ ret = get_group_from_gid(groups[i], &map);
+ unbecome_root();
+
+ if ( !ret ) {
DEBUG(10,("get_alias_user_groups: gid %d. not found\n", (int)groups[i]));
continue;
}