Commit 6510ef4
cifs: Fix encoding of SMB1 Session Setup NTLMSSP Request in non-UNICODE mode
SMB1 Session Setup NTLMSSP Request in non-UNICODE mode is similar to
UNICODE mode, just strings are encoded in ASCII and not in UTF-16.
With this change it is possible to setup SMB1 session with NTLM
authentication in non-UNICODE mode with Windows SMB server.
This change fixes mounting SMB1 servers with -o nounicode mount option
together with -o sec=ntlmssp mount option (which is the default sec=).
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent f1e7a27 commit 6510ef4
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | 1687 | | |
1693 | 1688 | | |
1694 | 1689 | | |
1695 | 1690 | | |
1696 | 1691 | | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1701 | 1702 | | |
1702 | | - | |
1703 | 1703 | | |
1704 | 1704 | | |
1705 | 1705 | | |
| |||
0 commit comments