All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
@ 2020-07-23 12:32 ` samba-bugs
  2020-07-28 18:09 ` samba-bugs
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-23 12:32 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

Aurélien Aptel <aaptel@samba.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaptel@samba.org
             Status|NEW                         |NEEDINFO

--- Comment #1 from Aurélien Aptel <aaptel@samba.org> ---
Have you tried a recent kernel? Lot of DFS changes went in the last few years.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
  2020-07-23 12:32 ` [Bug 13470] DFS mounted shares do not allow to go subdirectories samba-bugs
@ 2020-07-28 18:09 ` samba-bugs
  2020-07-28 19:34 ` samba-bugs
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-28 18:09 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #2 from Sergey <sergey_ilinykh@epam.com> ---
Hi Aurélien Aptel,

Following my scenario above I couldn't reproduce it anymore. Seems to work.

btw I have a couple of questions unrelated to this issue:
1. Is it possible to force smbclient/cifs mount to try all nameservers from
/etc/resolv.conf? 
2. Is it possible to mount dfs root? In my case it's //epam.com

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
  2020-07-23 12:32 ` [Bug 13470] DFS mounted shares do not allow to go subdirectories samba-bugs
  2020-07-28 18:09 ` samba-bugs
@ 2020-07-28 19:34 ` samba-bugs
  2020-07-28 19:50 ` samba-bugs
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-28 19:34 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #3 from Aurélien Aptel <aaptel@samba.org> ---
Regarding 1)

You can put multiple nameservers in /etc/resolv.conf but that might not have
the effect you want.

If you have 2 nameserver A and B, it will try to resolve by contacting A first.
But if A is *up* and replies that the the domain cannot be found it will stop
there.
The nameserver B will only be tried if A is down, not if A replies "doesn't
exist".

What I would suggest you do is setup dnsmasq. It's a tiny dns server proxy
daemon.

You can tell it to forward all domain request for epam.com and any subdomain
(e.g. a.epam.com, a.b.c.epam.com etc) to nameserver A, and forward all the
other request to nameserver B.

To use it, install dnsmasq, and put this in the config file (usually
/etc/dnsmasq.conf)

    # forward *.epam.com requests to 10.0.0.1
    server=/epam.com/10.0.0.1
    # forward the rest to 8.8.8.8
    server=/#/8.8.8.8

You will also need to set your system dns server to point to the local dnsmasq.
This can be done by putting 127.0.0.1 in /etc/resolv.conf (and only one). There
might be cleaner ways to do this depending on your distro as resolv.conf might
be overwritten by the system each time you connect to some Wifi network for
example.

----

Alternatively, if setting up dnsmasq is too much and you don't mind hardcoding
the IP of each host used in the DFS namespace, you can simply list them in
/etc/hosts

Regarding 2)

It should be possible to mount the dfs root yes. Once you have DNS working it
should all be ok, assuming your kernel is recent enough.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
                   ` (2 preceding siblings ...)
  2020-07-28 19:34 ` samba-bugs
@ 2020-07-28 19:50 ` samba-bugs
  2020-07-29 13:25 ` samba-bugs
  2020-07-31 15:07 ` samba-bugs
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-28 19:50 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #4 from Sergey <sergey_ilinykh@epam.com> ---
Thank you very much Aurélien.

I already played with dnsmasq this way for different purposes. I hoped there is
an easier way. But that's fine.

But mounting dfs root doesn't work for me.
Basically I take the mount line mentioned in the first post and remove MyShare.
Then I get something like following in dmesg

[95886.129233] CIFS: Attempting to mount //epam.com/
[95886.171103] CIFS VFS:  BAD_NETWORK_NAME: \\SUBDOMAINX.epam.com\epam.com
[95886.183185] CIFS VFS:  BAD_NETWORK_NAME: \\SUBDOMAINX.epam.com\epam.com
[95886.183836] CIFS VFS: cifs_mount failed w/return code = -112

Where SUBDOMAINX.epam.com is listable with smbclient -L

If I remove trailing / then I get next in dmesg

[96140.695029] CIFS VFS: Malformed UNC in devname

kernel 5.7.9

Ok. I think I need to report this under a different number.
Thanks again.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
                   ` (3 preceding siblings ...)
  2020-07-28 19:50 ` samba-bugs
@ 2020-07-29 13:25 ` samba-bugs
  2020-07-31 15:07 ` samba-bugs
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-29 13:25 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #5 from Sergey <sergey_ilinykh@epam.com> ---
btw I can open smb://epam.com in KDE's Dolphin. I guess it's because it doesn't
use kernel's capabilities for that.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 13470] DFS mounted shares do not allow to go subdirectories
       [not found] <bug-13470-10630@https.bugzilla.samba.org/>
                   ` (4 preceding siblings ...)
  2020-07-29 13:25 ` samba-bugs
@ 2020-07-31 15:07 ` samba-bugs
  5 siblings, 0 replies; 6+ messages in thread
From: samba-bugs @ 2020-07-31 15:07 UTC (permalink / raw)
  To: cifs-qa

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #6 from Aurélien Aptel <aaptel@samba.org> ---
Can you open a new bug and attach a network trace of opening the DFS root with
Dolphin, and another trace of trying to mount the root.

See instructions here: https://wiki.samba.org/index.php/Bug_Reporting#cifs.ko

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-31 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-13470-10630@https.bugzilla.samba.org/>
2020-07-23 12:32 ` [Bug 13470] DFS mounted shares do not allow to go subdirectories samba-bugs
2020-07-28 18:09 ` samba-bugs
2020-07-28 19:34 ` samba-bugs
2020-07-28 19:50 ` samba-bugs
2020-07-29 13:25 ` samba-bugs
2020-07-31 15:07 ` samba-bugs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.