From: Stefan Metzmacher Date: Thu, 24 Jan 2008 14:27:17 +0000 (+0100) Subject: wb-ndr: remove unused WINBINDD_LOOKUPNAME (dual) support X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwb-ndr.git;a=commitdiff_plain;h=0f8c70ba988e4cf8d6eee5b7423c4c8e17fcb77a wb-ndr: remove unused WINBINDD_LOOKUPNAME (dual) support metze --- diff --git a/source/winbindd/winbindd_async.c b/source/winbindd/winbindd_async.c index 72b86eca96b..e4308a7e686 100644 --- a/source/winbindd/winbindd_async.c +++ b/source/winbindd/winbindd_async.c @@ -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) { diff --git a/source/winbindd/winbindd_domain.c b/source/winbindd/winbindd_domain.c index c7441b8dffc..bfd5d10a181 100644 --- a/source/winbindd/winbindd_domain.c +++ b/source/winbindd/winbindd_domain.c @@ -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,