summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/wb_getpwsid.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/winbindd/wb_getpwsid.c b/source3/winbindd/wb_getpwsid.c
index 3c942f0857..5bd384be40 100644
--- a/source3/winbindd/wb_getpwsid.c
+++ b/source3/winbindd/wb_getpwsid.c
@@ -23,7 +23,6 @@
#include "../libcli/security/security.h"
struct wb_getpwsid_state {
- struct winbindd_domain *user_domain;
struct tevent_context *ev;
struct dom_sid sid;
struct wbint_userinfo *userinfo;
@@ -50,12 +49,6 @@ struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx,
state->ev = ev;
state->pw = pw;
- state->user_domain = find_domain_from_sid_noinit(user_sid);
- if (state->user_domain == NULL) {
- tevent_req_nterror(req, NT_STATUS_NO_SUCH_USER);
- return tevent_req_post(req, ev);
- }
-
subreq = wb_queryuser_send(state, ev, &state->sid);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);