1 Install the samba-server(3.3) and samba-client(3.3) on Fedola 8.
2 Set the parameter, "msdfs root = yes", in file /etc/samba/smb.conf.
3 Restart samba server (/sbin/service smb restart).
4 From client to do the following test.
smbclient //2001:250:6c01:100::3/test -U test%xxx -c "put test.txt text.txt"
There is an error happened:
"NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \text.txt"
5 But, in IPv4, it works correctly.
6 Besides, in IPv6, not all commands produce errors, for example:
[-c “mkdir ”],
[-c “rd “],
[-c “del ”] are correct.
7 Whereas, set the parameter, "msdfs root = no", in /etc/samba/smb.conf;
All functions above (in both IPv4, IPv6) are correct.
Just to confirm, if you use a IPv6 DNS name in the msdfs link, it should work correctly - yes ? It only fails with the IPv6 raw address here.
If you can confirm, this should be a reasonably easy fix.
Never mind. I misunderstood the bug report. I'll try and reproduce it here and create a fix for you asap.
Created attachment 4057 [details]
Patch for 3.3 I'm testing
Looks like the refactoring of the open file code for "create_file()" broke the opening of IPv6 filenames in msdfs root mode (IPv6 addresses contain ":" which gets the full \ip-v6-addr\share\filename mistakenly recognized as an NTFS Stream name. All MS-DFS path processing must be done *first* in create_file().
This patch fixes the problem here, and I've committed it to all git branches (3.2.x, 3.3.x, 3.4.x and master).
Let me know if it fixes the problem for you and we'll close out the bug.
Thanks for reporting the problem !
Yes, I'v confirmed it.
That's great! It works fine.