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

source/winbindd/winbindd_idmap.c

index d7338f2a5f5a36f39024aa08e6dc22f45f07b4a2..2097781c1614e7a2d2a6e1bc0349230910c81d13 100644 (file)
@@ -607,37 +607,8 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
-                                          struct winbindd_cli_state *state)
-{
-       DOM_SID sid;
-       NTSTATUS result;
-
-       DEBUG(3,("[%5lu]: gid %lu to sid\n",
-               (unsigned long)state->pid,
-               (unsigned long) state->request.data.gid));
-
-       /* Find sid for this gid and return it, possibly ask the slow remote idmap */
-       result = idmap_gid_to_sid(&sid, state->request.data.gid);
-
-       if (NT_STATUS_IS_OK(result)) {
-               sid_to_fstring(state->response.data.sid.sid, &sid);
-               DEBUG(10, ("[%5lu]: retrieved sid: %s\n",
-                          (unsigned long)state->pid,
-                          state->response.data.sid.sid));
-               state->response.data.sid.type = SID_NAME_DOM_GRP;
-               return WINBINDD_OK;
-       }
-
-       return WINBINDD_ERROR;
-}
-
 static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
        {
-               .name           = "DUAL_GID2SID",
-               .struct_cmd     = WINBINDD_DUAL_GID2SID,
-               .struct_fn      = winbindd_dual_gid2sid,
-       },{
                .name           = "DUAL_SET_MAPPING",
                .struct_cmd     = WINBINDD_DUAL_SET_MAPPING,
                .struct_fn      = winbindd_dual_set_mapping,