From: Stefan Metzmacher Date: Tue, 22 Jan 2008 14:55:04 +0000 (+0100) Subject: wb-ndr: remove unused WINBINDD_LOOKUPSID (dual) support X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwb-ndr.git;a=commitdiff_plain;h=26cda7ae5b84c39503592a77015f2483479ea74f wb-ndr: remove unused WINBINDD_LOOKUPSID (dual) support metze --- diff --git a/source/winbindd/winbindd_async.c b/source/winbindd/winbindd_async.c index b29eebadd37..49a8ba64352 100644 --- a/source/winbindd/winbindd_async.c +++ b/source/winbindd/winbindd_async.c @@ -323,46 +323,6 @@ nomem: return; } -enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain, - struct winbindd_cli_state *state) -{ - enum lsa_SidType type; - DOM_SID sid; - char *name; - char *dom_name; - - /* Ensure null termination */ - state->request.data.sid[sizeof(state->request.data.sid)-1]='\0'; - - DEBUG(3, ("[%5lu]: lookupsid %s\n", (unsigned long)state->pid, - state->request.data.sid)); - - /* Lookup sid from PDC using lsa_lookup_sids() */ - - if (!string_to_sid(&sid, state->request.data.sid)) { - DEBUG(5, ("%s not a SID\n", state->request.data.sid)); - return WINBINDD_ERROR; - } - - /* Lookup the sid */ - - if (!winbindd_lookup_name_by_sid(state->mem_ctx, domain, &sid, - &dom_name, &name, &type)) - { - TALLOC_FREE(dom_name); - TALLOC_FREE(name); - return WINBINDD_ERROR; - } - - fstrcpy(state->response.data.name.dom_name, dom_name); - fstrcpy(state->response.data.name.name, name); - state->response.data.name.type = type; - - TALLOC_FREE(dom_name); - TALLOC_FREE(name); - return WINBINDD_OK; -} - static void ndr_child_lookup_sid2name(struct winbindd_domain *domain, struct winbindd_cli_state *state, struct winbind_lookup *r) diff --git a/source/winbindd/winbindd_domain.c b/source/winbindd/winbindd_domain.c index 07eab685c5e..c7441b8dffc 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 = "LOOKUPSID", - .struct_cmd = WINBINDD_LOOKUPSID, - .struct_fn = winbindd_dual_lookupsid, - },{ .name = "LOOKUPNAME", .struct_cmd = WINBINDD_LOOKUPNAME, .struct_fn = winbindd_dual_lookupname,