summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-25 10:19:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:33 -0500
commited6936598ef73f1fc46801fd5dc7765d65032fa1 (patch)
tree7f42d900ba574f7cb7f1c2a579b358fc426f58a1 /source3
parent43600a1d5808af6df72a90bf4fe951e3e7da4601 (diff)
downloadsamba-ed6936598ef73f1fc46801fd5dc7765d65032fa1.tar.gz
samba-ed6936598ef73f1fc46801fd5dc7765d65032fa1.tar.bz2
samba-ed6936598ef73f1fc46801fd5dc7765d65032fa1.zip
r11898: Add a missing become_root().
Volker (This used to be commit efb7576d4e970e3cbb4621ebd754d329eec58b5a)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 00c8a9956c..b0472d287a 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -307,6 +307,11 @@ static void free_samr_cache(DISP_INFO *disp_info, const char *sid_str)
{
DEBUG(10,("free_samr_cache: deleting cache for SID %s\n", sid_str));
+ /* We need to become root here because the paged search might have to
+ * tell the LDAP server we're not interested in the rest anymore. */
+
+ become_root();
+
if (disp_info->users) {
DEBUG(10,("free_samr_cache: deleting users cache\n"));
pdb_search_destroy(disp_info->users);
@@ -338,6 +343,8 @@ static void free_samr_cache(DISP_INFO *disp_info, const char *sid_str)
disp_info->enum_users = NULL;
}
disp_info->enum_acb_mask = 0;
+
+ unbecome_root();
}
/*******************************************************************