wb-ndr: remove unused WINBINDD_LOOKUPNAME (dual) support
authorStefan Metzmacher <metze@sernet.de>
Thu, 24 Jan 2008 14:27:17 +0000 (15:27 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:17 +0000 (16:13 +0200)
metze

source/winbindd/winbindd_async.c
source/winbindd/winbindd_domain.c

index 72b86eca96b9056eb78add7ea9906c4177cb21f4..e4308a7e6868984315c14a4e44e27e0230613377 100644 (file)
@@ -551,46 +551,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain,
-                                             struct winbindd_cli_state *state)
-{
-       enum lsa_SidType type;
-       char *name_domain, *name_user;
-       DOM_SID sid;
-       char *p;
-
-       /* Ensure null termination */
-       state->request.data.name.dom_name[sizeof(state->request.data.name.dom_name)-1]='\0';
-
-       /* Ensure null termination */
-       state->request.data.name.name[sizeof(state->request.data.name.name)-1]='\0';
-
-       /* cope with the name being a fully qualified name */
-       p = strstr(state->request.data.name.name, lp_winbind_separator());
-       if (p) {
-               *p = 0;
-               name_domain = state->request.data.name.name;
-               name_user = p+1;
-       } else {
-               name_domain = state->request.data.name.dom_name;
-               name_user = state->request.data.name.name;
-       }
-
-       DEBUG(3, ("[%5lu]: lookupname %s%s%s\n", (unsigned long)state->pid,
-                 name_domain, lp_winbind_separator(), name_user));
-
-       /* Lookup name from DC using lsa_lookup_names() */
-       if (!winbindd_lookup_sid_by_name(state->mem_ctx, state->request.original_cmd, domain, name_domain,
-                                        name_user, &sid, &type)) {
-               return WINBINDD_ERROR;
-       }
-
-       sid_to_fstring(state->response.data.sid.sid, &sid);
-       state->response.data.sid.type = type;
-
-       return WINBINDD_OK;
-}
-
 bool print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
                   size_t num_sids, char **result, ssize_t *len)
 {
index c7441b8dffc7c4da9ed1c2690975009d17eb8b9c..bfd5d10a181d94783d32fdc02e9f2abe78af1b7e 100644 (file)
@@ -38,10 +38,6 @@ void setup_domain_child(struct winbindd_domain *domain,
 
 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
        {
-               .name           = "LOOKUPNAME",
-               .struct_cmd     = WINBINDD_LOOKUPNAME,
-               .struct_fn      = winbindd_dual_lookupname,
-       },{
                .name           = "LOOKUPRIDS",
                .struct_cmd     = WINBINDD_LOOKUPRIDS,
                .struct_fn      = winbindd_dual_lookuprids,