Re: [PATCH] cifs: Assume passwords are encoded according to iocharset (try #2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 20, 2011 at 3:55 PM, Oskar Liljeblad <oskar@xxxxxxxxxxx> wrote:
> On Thursday, October 20, 2011 at 22:13, Oskar Liljeblad wrote:
>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux