From 38f8d32d10f7486ee570275aff185994697203f3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 12 Dec 2007 09:51:56 +0100 Subject: winbindd: remove unused WINBINDD_DUMP_MAPS support Also the design of this function was really bad, instead do the dump into a file, the client should get back the list of mappings. metze (This used to be commit ce7fe8acf41e90553431c7cda6823700701835c7) --- source3/winbindd/winbindd_sid.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'source3/winbindd/winbindd_sid.c') diff --git a/source3/winbindd/winbindd_sid.c b/source3/winbindd/winbindd_sid.c index c01c6f04ab..302460c942 100644 --- a/source3/winbindd/winbindd_sid.c +++ b/source3/winbindd/winbindd_sid.c @@ -515,42 +515,3 @@ enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain, state->response.data.gid = xid.id; return WINBINDD_OK; } - -static void dump_maps_recv(void *private_data, bool success) -{ - struct winbindd_cli_state *state = - talloc_get_type_abort(private_data, struct winbindd_cli_state); - - if (!success) { - DEBUG(5, ("Could not dump maps\n")); - request_error(state); - return; - } - - request_ok(state); -} - -void winbindd_dump_maps(struct winbindd_cli_state *state) -{ - const char *logfile; - - if ( ! state->privileged) { - DEBUG(0, ("Only root is allowed to ask for an idmap dump!\n")); - request_error(state); - return; - } - - DEBUG(3, ("[%5lu]: dump maps\n", (unsigned long)state->pid)); - - logfile = talloc_strndup(state->mem_ctx, - (const char *)state->request.extra_data.data, - state->request.extra_len); - if (!logfile) { - request_error(state); - return; - } - - winbindd_dump_maps_async(state->mem_ctx, logfile, - dump_maps_recv, state); -} - -- cgit