Commit 978b567
ksmbd: smb1: fix session setup without SPNEGO
- Unset spnego bit in SMB negotiate response.
- Include NativeOS / Native LAN Manager / Primary Domain fields in
session setup response. Without these, smbclient fails with
NT_STATUS_BUFFER_TOO_SMALL.
Tested with smbclient:
smbclient //127.0.0.1/testshare -U user%password \
--option "client min protocol = NT1" \
--option "client use spnego = no" \
-m NT1
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent 3df3c5b commit 978b567
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
| |||
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
898 | | - | |
| 899 | + | |
899 | 900 | | |
| 901 | + | |
900 | 902 | | |
901 | 903 | | |
902 | 904 | | |
| |||
981 | 983 | | |
982 | 984 | | |
983 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
984 | 1009 | | |
985 | 1010 | | |
986 | 1011 | | |
| |||
0 commit comments