From 9021612c3da01bcd07f9dae5a7f2e5dae80ce59f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 19 Aug 2015 13:48:17 +0200 Subject: winbind: Do not look for the domain in wb_uid2sid Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464 (cherry picked from commit 2387d03b8ae9a471694503677667e623dff8ef88) --- source3/winbindd/wb_uid2sid.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source3/winbindd/wb_uid2sid.c b/source3/winbindd/wb_uid2sid.c index 315cc4a7658..c95bcd91448 100644 --- a/source3/winbindd/wb_uid2sid.c +++ b/source3/winbindd/wb_uid2sid.c @@ -26,7 +26,6 @@ struct wb_uid2sid_state { struct tevent_context *ev; - char *dom_name; struct dom_sid sid; }; @@ -38,7 +37,6 @@ struct tevent_req *wb_uid2sid_send(TALLOC_CTX *mem_ctx, { struct tevent_req *req, *subreq; struct wb_uid2sid_state *state; - struct winbindd_domain *domain; struct winbindd_child *child; bool expired; @@ -64,17 +62,6 @@ struct tevent_req *wb_uid2sid_send(TALLOC_CTX *mem_ctx, } } - state->dom_name = NULL; - - for (domain = domain_list(); domain != NULL; domain = domain->next) { - if (domain->have_idmap_config - && (uid >= domain->id_range_low) - && (uid <= domain->id_range_high)) { - state->dom_name = domain->name; - break; - } - } - child = idmap_child(); subreq = dcerpc_wbint_Uid2Sid_send( -- cgit v1.2.1