diff options
author | Stefan Metzmacher <metze@samba.org> | 2021-12-18 10:40:36 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-01-04 20:07:28 +0000 |
commit | 0ef1254f4428ab83ab6c8ca5e3415a1a9e069c92 (patch) | |
tree | d5c8c551c001c6d25e537dd637d8639c12e37ad2 /auth/credentials/credentials.h | |
parent | a03aa131554ef17801248a21722f2c8fb398ee44 (diff) | |
download | samba-0ef1254f4428ab83ab6c8ca5e3415a1a9e069c92.tar.gz |
auth/credentials: cli_credentials_set_ntlm_response() pass session_keys
Otherwise cli_credentials_get_ntlm_response() will return session keys
with a 0 length, which leads to errors in the NTLMSSP code.
This wasn't noticed as cli_credentials_set_ntlm_response() has no
callers yet, but that will change in the next commits.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14932
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'auth/credentials/credentials.h')
-rw-r--r-- | auth/credentials/credentials.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth/credentials/credentials.h b/auth/credentials/credentials.h index 4057565ad34..551b1611826 100644 --- a/auth/credentials/credentials.h +++ b/auth/credentials/credentials.h @@ -230,8 +230,10 @@ bool cli_credentials_set_nt_hash(struct cli_credentials *cred, bool cli_credentials_set_old_nt_hash(struct cli_credentials *cred, const struct samr_Password *nt_hash); bool cli_credentials_set_ntlm_response(struct cli_credentials *cred, - const DATA_BLOB *lm_response, - const DATA_BLOB *nt_response, + const DATA_BLOB *lm_response, + const DATA_BLOB *lm_session_key, + const DATA_BLOB *nt_response, + const DATA_BLOB *nt_session_key, enum credentials_obtained obtained); int cli_credentials_set_keytab_name(struct cli_credentials *cred, struct loadparm_context *lp_ctx, |