Changeset 2342

Timestamp:
Oct 7, 2013, 9:55:13 AM (5 years ago)
Author:
matthijs
Message:

samba3: Properly set endianness 2.0g

Apparently before Samba was always compiled for little-endian
architectures. Samba uses htons() and friends for its network protocol
and doesn't care much for endianness otherwise, except when dealing with
UCS2 strings. In particular, the uppercasing/lowercasing of strings
wouldn't work properly on big endian systems (2.0g).

The most visible effect of this was that NTLMv2 authentication didn't
work. Since Windows Vista and upwards default to NTMLv2, all passwords
would be rejected coming from those platforms. Also, recent Linux
versions seem to use NTLMv2 by default. The NTLMv1 authentication
apparently didn't use this UCS2 functions, so connecting from Windows XP
and below was unaffected.

Closes: #1325

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.