diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-09-12 03:18:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:40 -0500 |
commit | 15a96c42985c9bb4778a16160290220a935d99bd (patch) | |
tree | 3ca0bd98be270465d8be1596ccd684d33ca60ad1 /source4/libcli/auth | |
parent | 67c37a3b8ed9a0c9b5cc95ba03a921cf32e3cf3f (diff) | |
download | samba-15a96c42985c9bb4778a16160290220a935d99bd.tar.gz samba-15a96c42985c9bb4778a16160290220a935d99bd.tar.bz2 samba-15a96c42985c9bb4778a16160290220a935d99bd.zip |
r2290: Fix 'lsakey' for the server-side, it is static for
'authenticated' connections.
Fix kerberos session key issues - we need to call the
routine for extracting the session key, not just read the cache.
Andrew Bartlett
(This used to be commit b80d849b6b586869fc7d3d4153db1a316f2867a9)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r-- | source4/libcli/auth/gensec_krb5.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c index 4a97d51c40..5dbdf56b03 100644 --- a/source4/libcli/auth/gensec_krb5.c +++ b/source4/libcli/auth/gensec_krb5.c @@ -682,15 +682,13 @@ static NTSTATUS gensec_krb5_session_info(struct gensec_security *gensec_security session_info->nt_user_token = NULL; } - session_info->session_key = data_blob_talloc(session_info->mem_ctx, - gensec_krb5_state->session_key.data, - gensec_krb5_state->session_key.length); + nt_status = gensec_krb5_session_key(gensec_security, &session_info->session_key); session_info->workstation = NULL; *session_info_out = session_info; - return NT_STATUS_OK; + return nt_status; } |