mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11477: This seems really nasty, but as I understand it an attacker cannot
change this checksum, as it is inside the encrypted packets.
Where the client (such as Samba3) fakes up GSSAPI, allow it to
continue. We can't rid the world of all Samba3 and similar clients...
Andrew Bartlett
(This used to be commit e60cdb63fb
)
This commit is contained in:
parent
d59807eba4
commit
1ab27b7fdf
@ -183,8 +183,17 @@ gssapi_krb5_verify_8003_checksum(
|
||||
return GSS_S_BAD_BINDINGS;
|
||||
}
|
||||
|
||||
/* This is the case where Samba3 has built GSSAPI out of
|
||||
* krb5 the 'dodgy' way. We have to accept the non-GSSAPI
|
||||
* checksum because windows does */
|
||||
|
||||
if(cksum->cksumtype != CKSUMTYPE_GSSAPI) {
|
||||
*flags = 0;
|
||||
return GSS_S_COMPLETE;
|
||||
}
|
||||
|
||||
/* XXX should handle checksums > 24 bytes */
|
||||
if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum.length < 24) {
|
||||
if(cksum->checksum.length < 24) {
|
||||
*minor_status = 0;
|
||||
return GSS_S_BAD_BINDINGS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user