1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

winbindd: WBFLAG_PAM_AUTH_PAC should call add_trusted_domain_from_auth() is the result is trusted

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13262

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Feb 10 13:08:50 CET 2018 on sn-devel-144
This commit is contained in:
Stefan Metzmacher 2018-01-23 23:13:12 +01:00 committed by Ralph Boehme
parent 8422c001be
commit 597e755328

View File

@ -81,6 +81,20 @@ struct tevent_req *winbindd_pam_auth_crap_send(
return tevent_req_post(req, ev);
}
if (is_trusted && (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_post(req, ev);
}
}
tevent_req_done(req);
return tevent_req_post(req, ev);
}