On Thu, Oct 20, 2011 at 3:55 PM, Oskar Liljeblad [off-list ref] wrote:
On Thursday, October 20, 2011 at 22:13, Oskar Liljeblad wrote:
quoted
I like the idea of opaque passwords as well, but the problem is that the
password needs to be in UCS-2 for smb. The password is passed through
_my_mbstowcs which converts the 8-bit password to 16-bit UCS-2 simply
by setting high byte to zero. So that makes opaque 8-bit passwords
impossible. One alternative would be to assume passwords in UTF-8
regardless of iocharset.
On another note, it wouldn't surprise me if Microsoft assumes UTF-16 rather
than UCS-2 in their CIFS implementation today...
We can ask them if we have some more specific data to question them on
(including traces). We could probably turn off password encryption to
try this.
--
Thanks,
Steve