summaryrefslogtreecommitdiffstats
path: root/source/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
commitce7fe8acf41e90553431c7cda6823700701835c7 (patch)
treed99b294ab141ef83518b340e4ec7bd33cd639c3a /source/nsswitch
parentfd4499ee438e4947990200db529363d51bd2c956 (diff)
downloadsamba-ce7fe8acf41e90553431c7cda6823700701835c7.tar.gz
samba-ce7fe8acf41e90553431c7cda6823700701835c7.tar.xz
samba-ce7fe8acf41e90553431c7cda6823700701835c7.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
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/wb_client.c18
-rw-r--r--source/nsswitch/winbind_struct_protocol.h3
2 files changed, 0 insertions, 21 deletions
diff --git a/source/nsswitch/wb_client.c b/source/nsswitch/wb_client.c
index 3e3c140fae8..1fd1e025b6d 100644
--- a/source/nsswitch/wb_client.c
+++ b/source/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/source/nsswitch/winbind_struct_protocol.h b/source/nsswitch/winbind_struct_protocol.h
index bc94d4e68f3..5b663c63f79 100644
--- a/source/nsswitch/winbind_struct_protocol.h
+++ b/source/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,