Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba: problem connecting to a DFS share using smbclient
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 463

PostPosted: Mon Nov 14, 2016 10:17 am    Post subject: Samba: problem connecting to a DFS share using smbclient Reply with quote

I have a problem connecting to a DFS share using `smbclient`. It does work using `mount -t cifs`.
Namely, when I do
Code:
sudo mount -t cifs //<dfs-url>/<service> ~/mountpoint/ -o username=<username>

things work perfectly. However, doing
Code:
smbclient //<dfs-url>/<service> -U <username> -W <workgroup>
Enter <username>'s password:
Domain=[<domain>] OS=[Windows Server 2012 R2 Datacenter 9600] Server=[Windows Server 2012 R2 Datacenter 6.3]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I would expect that if I can connect using a cifs mount, I should be able to connect using smbclient.
Am I doing something wrong with the smbclient invokation?
Has anbody managed to connect to a DFS share using smbclient?
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 82
Location: Bradford, Canada

PostPosted: Wed Nov 16, 2016 9:53 pm    Post subject: Reply with quote

Couple of questions:

1) Is this Samba4? If so, which version? They have a couple on the go.
2) Wasn't the smbclient Samba3 based? It may use the old codebase for it's functions even in the Samba4 ebuild.


I seem to recall having to disable DFS to make my GPOs work, FWIW. There may yet be some missing functionality.
Back to top
View user's profile Send private message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 463

PostPosted: Wed Nov 16, 2016 10:09 pm    Post subject: Reply with quote

twalter wrote:
1) Is this Samba4? If so, which version? They have a couple on the go.
2) Wasn't the smbclient Samba3 based? It may use the old codebase for it's functions even in the Samba4 ebuild.

1) 4.2.14 (testing, because stable 4.2.11 does not contain some fixes I need)
2) Perhaps, but on the net, there is plenty of mention smbclient being able to connect to DFS shares; it's usually cifs-mounting that people encounter issues with.
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 82
Location: Bradford, Canada

PostPosted: Thu Nov 17, 2016 12:58 am    Post subject: Reply with quote

Does the smb client support the same security protocols ?
Back to top
View user's profile Send private message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 463

PostPosted: Thu Nov 17, 2016 8:25 am    Post subject: Reply with quote

twalter wrote:
Does the smb client support the same security protocols ?

I don't know, but seriously doubt that that is the problem, given the error message.
Back to top
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 82
Location: Bradford, Canada

PostPosted: Thu Nov 17, 2016 9:52 pm    Post subject: Reply with quote

You'd be surprised. Kerberos resolves separately in its own way (realm-based) from the transport. If auth fails, it could show as a connect fail that presents that way. (https://msdn.microsoft.com/en-us/library/cc246774.aspx)

Are you able to get a Wireshark trace to compare with the successful connection? That would clearly show how far it gets before failure.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum