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

source/winbindd/winbindd_idmap.c

index ef97e39b8de2baaf548701edb6100e6765bdf5b6..1186764d51b9e23d40288d987077d7b27955f5a0 100644 (file)
@@ -407,28 +407,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_sid2uid(struct winbindd_domain *domain,
-                                          struct winbindd_cli_state *state)
-{
-       DOM_SID sid;
-       NTSTATUS result;
-
-       DEBUG(3, ("[%5lu]: sid to uid %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 uid for this sid and return it, possibly ask the slow remote idmap */
-
-       result = idmap_sid_to_uid(&sid, &(state->response.data.uid));
-
-       return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;
-}
-
 static void winbindd_sid2gid_recv(TALLOC_CTX *mem_ctx, bool success,
                               struct winbindd_response *response,
                               void *c, void *private_data)
@@ -615,10 +593,6 @@ enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
 
 static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
        {
-               .name           = "DUAL_SID2UID",
-               .struct_cmd     = WINBINDD_DUAL_SID2UID,
-               .struct_fn      = winbindd_dual_sid2uid,
-       },{
                .name           = "DUAL_SID2GID",
                .struct_cmd     = WINBINDD_DUAL_SID2GID,
                .struct_fn      = winbindd_dual_sid2gid,