1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

s4:rpc_server/netlogon: let dcesrv_netr_LogonSamLogon_base_reply handle encryption errors

This might be the better option when we implement
netr_ServerAuthenticateKerberos().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-11-15 17:12:52 +01:00
parent a4105f94f9
commit 567d4e356a

View File

@ -1704,6 +1704,12 @@ static void dcesrv_netr_LogonSamLogon_base_reply(
DBG_ERR("netlogon_creds_encrypt_samlogon_validation() "
"failed - %s\n",
nt_errstr(status));
if (r->out.validation != NULL) {
ZERO_STRUCTP(r->out.validation);
}
*r->out.authoritative = true;
*r->out.flags = 0;
r->out.result = status;
}
}