summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(