diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-19 13:48:17 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-08-31 10:18:16 +0200 |
commit | 4e987b39ab6e5e2d5e87282b1008ac49a392c1ae (patch) | |
tree | cad2c6fbbf6ac322787c8c08f030a8ce63bf31d2 | |
parent | 9021612c3da01bcd07f9dae5a7f2e5dae80ce59f (diff) | |
download | samba-4e987b39ab6e5e2d5e87282b1008ac49a392c1ae.tar.gz |
winbind: Do not look for the domain in wb_gid2sid
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
(cherry picked from commit b62c7e26b4783cdff11e406e4d75bc2e0fba7933)
-rw-r--r-- | source3/winbindd/wb_gid2sid.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/winbindd/wb_gid2sid.c b/source3/winbindd/wb_gid2sid.c index 323437b69c3..97cc754f896 100644 --- a/source3/winbindd/wb_gid2sid.c +++ b/source3/winbindd/wb_gid2sid.c @@ -26,7 +26,6 @@ struct wb_gid2sid_state { struct tevent_context *ev; - char *dom_name; struct dom_sid sid; }; @@ -38,7 +37,6 @@ struct tevent_req *wb_gid2sid_send(TALLOC_CTX *mem_ctx, { struct tevent_req *req, *subreq; struct wb_gid2sid_state *state; - struct winbindd_domain *domain; struct winbindd_child *child; bool expired; @@ -64,17 +62,6 @@ struct tevent_req *wb_gid2sid_send(TALLOC_CTX *mem_ctx, } } - state->dom_name = NULL; - - for (domain = domain_list(); domain != NULL; domain = domain->next) { - if (domain->have_idmap_config - && (gid >= domain->id_range_low) - && (gid <= domain->id_range_high)) { - state->dom_name = domain->name; - break; - } - } - child = idmap_child(); subreq = dcerpc_wbint_Gid2Sid_send( |