summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-12-12 09:51:56 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-12 10:07:05 +0100
commit38f8d32d10f7486ee570275aff185994697203f3 (patch)
tree08a996228dcb33ef51d574d30db44068ea89fa98 /source3/nsswitch
parent3728c8b6d963756a24b0788344baeedfb4b9c2d7 (diff)
downloadsamba-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/nsswitch')
-rw-r--r--source3/nsswitch/wb_client.c18
-rw-r--r--source3/nsswitch/winbind_struct_protocol.h3
2 files changed, 0 insertions, 21 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 3e3c140fae..1fd1e025b6 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -405,24 +405,6 @@ bool winbind_sids_to_unixids(struct id_map *ids, int num_ids)
return (result == NSS_STATUS_SUCCESS);
}
-bool winbind_idmap_dump_maps(TALLOC_CTX *memctx, const char *file)
-{
- struct winbindd_request request;
- struct winbindd_response response;
- int result;
-
- ZERO_STRUCT(request);
- ZERO_STRUCT(response);
-
- request.extra_data.data = SMB_STRDUP(file);
- request.extra_len = strlen(request.extra_data.data) + 1;
-
- result = winbindd_request_response(WINBINDD_DUMP_MAPS, &request, &response);
-
- SAFE_FREE(request.extra_data.data);
- return (result == NSS_STATUS_SUCCESS);
-}
-
bool winbind_allocate_uid(uid_t *uid)
{
struct winbindd_request request;
diff --git a/source3/nsswitch/winbind_struct_protocol.h b/source3/nsswitch/winbind_struct_protocol.h
index bc94d4e68f..5b663c63f7 100644
--- a/source3/nsswitch/winbind_struct_protocol.h
+++ b/source3/nsswitch/winbind_struct_protocol.h
@@ -108,8 +108,6 @@ enum winbindd_cmd {
/* Miscellaneous other stuff */
- WINBINDD_DUMP_MAPS,
-
WINBINDD_CHECK_MACHACC, /* Check machine account pw works */
WINBINDD_PING, /* Just tell me winbind is running */
WINBINDD_INFO, /* Various bit of info. Currently just tidbits */
@@ -153,7 +151,6 @@ enum winbindd_cmd {
WINBINDD_DUAL_GID2SID,
WINBINDD_DUAL_SET_MAPPING,
WINBINDD_DUAL_SET_HWM,
- WINBINDD_DUAL_DUMP_MAPS,
/* Wrapper around possibly blocking unix nss calls */
WINBINDD_DUAL_USERINFO,