diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-12-12 09:51:56 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-12 10:07:05 +0100 |
commit | 38f8d32d10f7486ee570275aff185994697203f3 (patch) | |
tree | 08a996228dcb33ef51d574d30db44068ea89fa98 /source3/winbindd/winbindd_sid.c | |
parent | 3728c8b6d963756a24b0788344baeedfb4b9c2d7 (diff) | |
download | samba-38f8d32d10f7486ee570275aff185994697203f3.tar.gz samba-38f8d32d10f7486ee570275aff185994697203f3.tar.bz2 samba-38f8d32d10f7486ee570275aff185994697203f3.zip |
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)
Diffstat (limited to 'source3/winbindd/winbindd_sid.c')
-rw-r--r-- | source3/winbindd/winbindd_sid.c | 39 |
1 files changed, 0 insertions, 39 deletions
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); -} - |