[PATCH] fix connection to Nintendo 3DS

Philippe Daouadi blastrock0 at free.fr
Thu Jan 12 23:39:39 UTC 2017


Hi,

As you may (or may not) know, it is possible to open an access to the
internal microSD card of a 3DS through its configuration interface. The
access is a simple listening smb server over wifi.

It works without problem when connecting from a real Windows system, but
it always fails when trying to connect through Samba with this message:

session setup failed: NT_STATUS_INVALID_NETWORK_RESPONSE

I didn't find any solution on the Internet, so I started gdb-ing and
wireshark-ing the issue.

I managed to make it work, and it seems to come down to the
NTLMSSP_NEGOTIATE message that the client sends to the server. When
samba sends this message, it is wrapped into GSS-API with SPNEGO (I have
no idea what these mean). Windows doesn't do that and just send the
naked NTLMSSP packet.

I'm attaching a patch that removes the SPNEGO from the authentication
chain while keeping the NTLMSSP. I'm pretty sure that this patch breaks
stuff (after all, it was made that way for a reason), but I don't have
the necessary knowledge of Samba's codebase to make this a configurable
option in smb.conf or a command-line switch.

I'm leaving the patch here if someone wants to do it, I'm pretty sure
that they would make a bunch of linux users with Nintendo 3DSes happy :)

Cheers,
Philippe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-nintendo-3ds.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170113/83f19669/fix-nintendo-3ds.bin>


More information about the samba-technical mailing list