mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
krb5_init_sec_context: skip the token header when GSS_C_DCE_STYLE is specified
Windows (and heimdal) accepts packets with token header in the server, but it doesn't match the windows client. We now match the windows client and that fixes also the display in wireshark. metze (This used to be commit 58f66184f0f732a78e86bbb0f3c29e920f086d08)
This commit is contained in:
parent
9b913d602b
commit
b3ec55b984
@ -540,12 +540,18 @@ init_auth
|
||||
goto failure;
|
||||
}
|
||||
|
||||
ret = _gsskrb5_encapsulate (minor_status, &outbuf, output_token,
|
||||
(u_char *)"\x01\x00", GSS_KRB5_MECHANISM);
|
||||
if (ret)
|
||||
goto failure;
|
||||
if (flags & GSS_C_DCE_STYLE) {
|
||||
output_token->value = outbuf.data;
|
||||
output_token->length = outbuf.length;
|
||||
} else {
|
||||
ret = _gsskrb5_encapsulate (minor_status, &outbuf, output_token,
|
||||
(u_char *)"\x01\x00", GSS_KRB5_MECHANISM);
|
||||
if (ret)
|
||||
goto failure;
|
||||
|
||||
krb5_data_free (&outbuf);
|
||||
}
|
||||
|
||||
krb5_data_free (&outbuf);
|
||||
krb5_free_creds(context, kcred);
|
||||
free_Checksum(&cksum);
|
||||
if (cred == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user