summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-19 13:48:17 +0200
committerStefan Metzmacher <metze@samba.org>2015-08-31 10:18:16 +0200
commit9021612c3da01bcd07f9dae5a7f2e5dae80ce59f (patch)
tree048e23ccfb66f667e8e986d1b3b787515ef80337
parent79a1174e10715c1fb40766a5be39b9f863991057 (diff)
downloadsamba-9021612c3da01bcd07f9dae5a7f2e5dae80ce59f.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 (cherry picked from commit 2387d03b8ae9a471694503677667e623dff8ef88)
-rw-r--r--source3/winbindd/wb_uid2sid.c13
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(