diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-19 13:48:17 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-08-24 16:16:12 +0200 |
commit | 2387d03b8ae9a471694503677667e623dff8ef88 (patch) | |
tree | 9be46c859ce383ccc2be2aa69acc1e5de93d7758 | |
parent | 8856555af43848830b7c1e47765d26ce59dfa62b (diff) | |
download | samba-2387d03b8ae9a471694503677667e623dff8ef88.tar.gz |
winbind: Do not look for the domain in wb_uid2sid
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
-rw-r--r-- | source3/winbindd/wb_uid2sid.c | 13 |
1 files changed, 0 insertions, 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( |