tevent_req_nterror(req, map_nt_error_from_unix(err));
return;
}
+
+ if (NT_STATUS_IS_OK(NT_STATUS(state->response->data.auth.nt_status)) &&
+ (state->flags & WBFLAG_PAM_INFO3_TEXT))
+ {
+ bool ok;
+
+ ok = add_trusted_domain_from_auth(
+ state->response->data.auth.validation_level,
+ &state->response->data.auth.info3,
+ &state->response->data.auth.info6);
+ if (!ok) {
+ DBG_ERR("add_trusted_domain_from_auth failed\n");
+ tevent_req_nterror(req, NT_STATUS_LOGON_FAILURE);
+ return;
+ }
+ }
+
tevent_req_done(req);
}
}
- if (NT_STATUS_IS_OK(NT_STATUS(state->response->data.auth.nt_status)) &&
- (state->flags & WBFLAG_PAM_INFO3_TEXT))
- {
- bool ok;
-
- ok = add_trusted_domain_from_auth(
- state->response->data.auth.validation_level,
- &state->response->data.auth.info3,
- &state->response->data.auth.info6);
- if (!ok) {
- DBG_ERR("add_trusted_domain_from_auth failed\n");
- set_auth_errors(response, NT_STATUS_LOGON_FAILURE);
- return NT_STATUS_LOGON_FAILURE;
- }
- }
-
*response = *state->response;
response->result = WINBINDD_PENDING;
state->response = talloc_move(response, &state->response);