Can’t mount SMB2 shares

Issue #52 new
Luky created an issue

I’m not able to mount samba shares from a server which doesn’t support SMB1. I have tried different vers parameters but to no avail. As soon as SMB1 is allowed mounting is possible.

SMB1 is being abandoned for security reason, therefore limiting cifs to SMB1 is quite a problem

Debug log:

May  5 22:57:11 pandarouter kern.debug kernel: fs/cifs/transport.c: For smb_command 114
May  5 22:57:11 pandarouter kern.debug kernel: fs/cifs/transport.c: Sending smb:  total_len 73
May  5 22:57:11 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x45 0xff 0x53 0x4d 0x42  |  _ _ _ E ÿ S M B
May  5 22:57:11 pandarouter kern.debug kernel: | 0x72 0x00 0x00 0x00 0x00 0x00 0x01 0xc0  |  r _ _ _ _ _ _ À
May  5 22:57:11 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
May  5 22:57:11 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x7a 0x03  |  _ _ _ _ _ _ z _
May  5 22:57:11 pandarouter kern.debug kernel: | 0x00 0x00 0x01 0x00 0x00 0x22 0x00 0x02  |  _ _ _ _ _ " _ _
May  5 22:57:11 pandarouter kern.debug kernel: | 0x4c 0x4d 0x31 0x2e 0x32 0x58 0x30 0x30  |  L M 1 . 2 X 0 0
May  5 22:57:11 pandarouter kern.debug kernel: | 0x32 0x00 0x02 0x4c 0x41 0x4e 0x4d 0x41  |  2 _ _ L A N M A
May  5 22:57:11 pandarouter kern.debug kernel: | 0x4e 0x32 0x2e 0x31 0x00 0x02 0x4e 0x54  |  N 2 . 1 _ _ N T
May  5 22:57:11 pandarouter kern.debug kernel: | 0x20 0x4c 0x4d 0x20 0x30 0x2e 0x31 0x32  |    L M   0 . 1 2
May  5 22:57:11 pandarouter kern.debug kernel: | 0x00                                     |  _
May  5 22:57:12 pandarouter kern.debug kernel: fs/cifs/connect.c: rfc1002 length 0x29
May  5 22:57:12 pandarouter kern.debug kernel: | 0x25 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  % _ _ _ ÿ S M B
May  5 22:57:12 pandarouter kern.debug kernel: | 0x72 0x00 0x00 0x00 0x00 0x80 0x03 0xc0  |  r _ _ _ _ _ _ À
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x7a 0x03  |  _ _ _ _ _ _ z _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x01 0x00 0x01 0xff 0xff 0x00  |  _ _ _ _ _ ÿ ÿ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00                                     |  _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x25 0x00 0x00 0x00 0xff 0x53 0x4d 0x42  |  % _ _ _ ÿ S M B
May  5 22:57:12 pandarouter kern.debug kernel: | 0x72 0x00 0x00 0x00 0x00 0x80 0x03 0xc0  |  r _ _ _ _ _ _ À
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x7a 0x03  |  _ _ _ _ _ _ z _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x01 0x00 0x01 0xff 0xff 0x00  |  _ _ _ _ _ ÿ ÿ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x4d 0x31 0x2e 0x32 0x58 0x30 0x30  |  _ M 1 . 2 X 0 0
May  5 22:57:12 pandarouter kern.debug kernel: | 0x32 0x00 0x02 0x4c 0x41 0x4e 0x4d 0x41  |  2 _ _ L A N M A
May  5 22:57:12 pandarouter kern.debug kernel: | 0x4e 0x32 0x2e 0x31 0x00 0x02 0x4e 0x54  |  N 2 . 1 _ _ N T
May  5 22:57:12 pandarouter kern.debug kernel: | 0x20 0x4c 0x4d 0x20 0x30 0x2e 0x31 0x32  |    L M   0 . 1 2
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00  |  _ _ _ _ _ _ _ _
May  5 22:57:12 pandarouter kern.debug kernel: | 0x00 0x00 0x00 0x00                      |  _ _ _ _
May  5 22:57:12 pandarouter kern.debug kernel: fs/cifs/cifssmb.c: Dialect: 65535
May  5 22:57:12 pandarouter kern.debug kernel: fs/cifs/cifssmb.c: negprot rc -95
May  5 22:57:12 pandarouter kern.debug kernel: fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 203) rc = -95
May  5 22:57:12 pandarouter kern.debug kernel: fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 202) rc = -95
May  5 22:57:12 pandarouter kern.err kernel: CIFS VFS: cifs_mount failed w/return code = -95

Comments (2)

  1. Luky reporter

    Ok, than lets call it new feature

    SMB1 is phased out so the support for newer versions should be added.

  2. Log in to comment