mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
r13144: This seems to be required for Samba4 to talk to Samba4, and to get the
same session key. I need to understand this more, but it works samba/samba, and I don't have access to windows doing AES (longhorn) yet. Andrew Bartlett (This used to be commit 38809b43a5d6bd668e9cb714573dc1e72ceff092)
This commit is contained in:
parent
96ca571f42
commit
20d9dc9796
@ -358,6 +358,7 @@ gsskrb5_initiator_start
|
||||
Checksum cksum;
|
||||
krb5_enctype enctype;
|
||||
krb5_data fwd_data;
|
||||
int is_cfx;
|
||||
|
||||
krb5_data_zero(&outbuf);
|
||||
krb5_data_zero(&fwd_data);
|
||||
@ -486,6 +487,16 @@ gsskrb5_initiator_start
|
||||
|
||||
enctype = (*context_handle)->auth_context->keyblock->keytype;
|
||||
|
||||
gsskrb5_is_cfx(*context_handle, &is_cfx);
|
||||
|
||||
if (is_cfx != 0) {
|
||||
kret = krb5_auth_con_addflags(gssapi_krb5_context,
|
||||
(*context_handle)->auth_context,
|
||||
KRB5_AUTH_CONTEXT_USE_SUBKEY,
|
||||
NULL);
|
||||
(*context_handle)->more_flags |= ACCEPTOR_SUBKEY;
|
||||
}
|
||||
|
||||
/* We need to create an Authenticator */
|
||||
{
|
||||
kret = krb5_build_authenticator (gssapi_krb5_context,
|
||||
|
Loading…
x
Reference in New Issue
Block a user