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

source/winbindd/winbindd_idmap.c

index f78bde22c52e2e86e79da7264e73421aaec898ec..c2582170695d46bf1ee838dd58fda9a7c502de76 100644 (file)
@@ -541,28 +541,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
-                                          struct winbindd_cli_state *state)
-{
-       DOM_SID sid;
-       NTSTATUS result;
-
-       DEBUG(3,("[%5lu]: uid to sid %lu\n",
-                (unsigned long)state->pid,
-                (unsigned long) state->request.data.uid));
-
-       /* Find sid for this uid and return it, possibly ask the slow remote idmap */
-       result = idmap_uid_to_sid(&sid, state->request.data.uid);
-
-       if (NT_STATUS_IS_OK(result)) {
-               sid_to_fstring(state->response.data.sid.sid, &sid);
-               state->response.data.sid.type = SID_NAME_USER;
-               return WINBINDD_OK;
-       }
-
-       return WINBINDD_ERROR;
-}
-
 static void winbindd_gid2sid_recv(TALLOC_CTX *mem_ctx, bool success,
                                  struct winbindd_response *response,
                                  void *c, void *private_data)
@@ -625,10 +603,6 @@ enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
 
 static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
        {
-               .name           = "DUAL_UID2SID",
-               .struct_cmd     = WINBINDD_DUAL_UID2SID,
-               .struct_fn      = winbindd_dual_uid2sid,
-       },{
                .name           = "DUAL_GID2SID",
                .struct_cmd     = WINBINDD_DUAL_GID2SID,
                .struct_fn      = winbindd_dual_gid2sid,