So after some experimentation, I've discovered the following:
The problem with SMBv2 happens only when connecting to a share on Windows 8.1, I can connect to Windows 10 shares OK. Even if I set the
SMB shares to be open to "Everyone" with no username/password needed, it still fails
Replicated on both an Apple TV 4k and a nVidia Shield. Kodi 18.5 on the Shield though has no problems with SMBv2 shares on Windows 8.1.
Log from Apple TV 4k below. One odd thing I noticed is that the entry is listed as
smb://USERNAME:PASSWORD@htpc/test without the inputted username and password. Not sure if this log is just masking the credentials or if that's part of the problem. In any case, setting the share to be open to "Everyone" didn't change anything
11:32:35.337 T:6133641216 DEBUG: Activating window ID: 10004
11:32:35.657 T:6133641216 DEBUG: ------ Window Deinit (Home.xml) ------
11:32:35.657 T:6133641216 DEBUG: ------ Window Init (Settings.xml) ------
11:32:35.657 T:6133641216 INFO: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY
11:32:39.249 T:6133641216 DEBUG: Activating window ID: 10003
11:32:39.577 T:6133641216 DEBUG: ------ Window Deinit (Settings.xml) ------
11:32:39.578 T:6133641216 INFO: Attempting to default to:
11:32:39.578 T:6133641216 DEBUG: ------ Window Init (FileManager.xml) ------
11:32:39.578 T:6133641216 INFO: Loading skin file: FileManager.xml, load type: KEEP_IN_MEMORY
11:32:41.230 T:6133641216 INFO: Loading skin file: DialogMediaSource.xml, load type: KEEP_IN_MEMORY
11:32:41.246 T:6133641216 DEBUG: ------ Window Init (DialogMediaSource.xml) ------
11:32:43.850 T:6133641216 INFO: Loading skin file: FileBrowser.xml, load type: KEEP_IN_MEMORY
11:32:43.857 T:6133641216 DEBUG: found key /userdata/mediasources.xml
11:32:43.858 T:6133641216 DEBUG: ------ Window Init (FileBrowser.xml) ------
11:32:46.393 T:6133641216 INFO: Loading skin file: DialogNetworkSetup.xml, load type: KEEP_IN_MEMORY
11:32:46.404 T:6133641216 DEBUG: ------ Window Init (DialogNetworkSetup.xml) ------
11:33:33.515 T:6133641216 DEBUG: ------ Window Deinit (DialogNetworkSetup.xml) ------
11:33:33.517 T:6133641216 DEBUG: CPasswordManager:AuthenticateURL hasUserPass(1), path(
smb://USERNAME:PASSWORD@htpc/test)
11:33:33.517 T:6133641216 DEBUG: CDNSNameCache::Lookup, check by getaddrinfo
11:33:33.525 T:6133641216 DEBUG: getaddrinfo: 'htpc' -> '192.168.147.127'
11:33:33.539 T:6133641216 ERROR: SMB2: connect to share 'test' at server 'htpc' failed. Session setup failed with (0xc000006d) STATUS_LOGON_FAILURE