wb-ndr: remove unused WINBINDD_DUAL_SID2GID support
authorStefan Metzmacher <metze@sernet.de>
Tue, 11 Dec 2007 13:16:50 +0000 (14:16 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:12:39 +0000 (16:12 +0200)
metze

source/winbindd/winbindd_idmap.c

index 3fb95702a8ff707f7c4b4d1790c6bc781e6ba65c..c64566f937bced0caa3f72292df9c98871ea308b 100644 (file)
@@ -475,32 +475,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
-                                          struct winbindd_cli_state *state)
-{
-       DOM_SID sid;
-       NTSTATUS result;
-
-       DEBUG(3, ("[%5lu]: sid to gid %s\n", (unsigned long)state->pid,
-                 state->request.data.dual_sid2id.sid));
-
-       if (!string_to_sid(&sid, state->request.data.dual_sid2id.sid)) {
-               DEBUG(1, ("Could not get convert sid %s from string\n",
-                         state->request.data.dual_sid2id.sid));
-               return WINBINDD_ERROR;
-       }
-
-       /* Find gid for this sid and return it, possibly ask the slow remote idmap */
-
-       result = idmap_sid_to_gid(&sid, &state->response.data.gid);
-
-       DEBUG(10, ("winbindd_dual_sid2gid: 0x%08x - %s - %u\n",
-                  NT_STATUS_V(result), sid_string_dbg(&sid),
-                  state->response.data.gid));
-
-       return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;
-}
-
 /* The following uid2sid/gid2sid functions has been contributed by
  * Keith Reynolds <Keith.Reynolds@centrify.com> */
 
@@ -623,10 +597,6 @@ enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
 
 static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
        {
-               .name           = "DUAL_SID2GID",
-               .struct_cmd     = WINBINDD_DUAL_SID2GID,
-               .struct_fn      = winbindd_dual_sid2gid,
-       },{
                .name           = "DUAL_UID2SID",
                .struct_cmd     = WINBINDD_DUAL_UID2SID,
                .struct_fn      = winbindd_dual_uid2sid,