Please add WS-Discovery ( WSD ) support for Windows Samba server discovery.

Bug #1831441 reported by Morbius1 on 2019-06-03
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
samba
Unknown
Unknown
samba (Ubuntu)
Wishlist
Unassigned

Bug Description

Please add WS-Discovery ( WSD ) support for Windows Samba server discovery.

Windows 10 disables the smbv1 client dialect on new builds and this in turn disables NetBIOS host discovery in its File manager. Configured this way Win10 will never be able to browse the network and discover a Linux Samba server. With the addition of WSD in Ubuntu Win10 will discover the Linux Samba server using its native WSD protocol.

There exists in github something that has most of this already created. One can use it in Ubuntu but it requires some work to implement:

[1] Download the file:

wget https://github.com/christgau/wsdd/archive/master.zip

[2] After unzipping it rename the python script:

sudo mv wsdd-master/src/wsdd.py wsdd-master/src/wsdd

[3] Copy it to /usr/bin

sudo cp wsdd-master/src/wsdd /usr/bin

[4] A systemd service file is already provided in the package it just needs to be copied to the correct location:

sudo cp wsdd-master/etc/systemd/wsdd.service /etc/systemd/system

[5] The wsdd.service file has to be edited to remove references to the nobody user:

#User=nobody
#Group=nobody

[6] Then enable the service:

sudo systemctl daemon-reload
sudo systemctl start wsdd
sudo systemctl enable wsdd

Synology already has this incorporated into it's products and some Linux distros like Arch do as well.

Ubuntu 18.04 already announces itself in Samba ( multicast dns register ) using avahi and is browseable to its Linux and MacOS clients so the addition of WSD would make the samba host discoverable to all modern operating systems through their file managers without any user intervention.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba (Ubuntu):
status: New → Confirmed
Changed in samba (Ubuntu):
importance: Undecided → Wishlist
status: Confirmed → Triaged
Bryce Harrington (bryce) wrote :

Ref. for windows dropping SMB1:
* https://techcommunity.microsoft.com/t5/Storage-at-Microsoft/Stop-using-SMB1/ba-p/425858

Good info on how Samba was affected by this:
* https://superuser.com/questions/1322497/did-windows-10-april-update-break-network-discovery-and-samba-support?rq=1

From Samba's FAQ, it looks like there has been some work upstream at supporting WSD internally, and there is a patch proposed (the master.zip file's README.md references this work):
* https://wiki.samba.org/index.php/FAQ
* https://bugzilla.samba.org/show_bug.cgi?id=11473

Of note, this review comment:

"""
- Is WSD only based on HTTP (via TCP)?
  If so would it make sense to reuse some of source4/web_server/
  and implement WSD in python?
  Just as an idea, using xml in C always scares me..
"""

It would probably be a good idea to post a mention of this wsdd-master to the Samba bug report. They may already be aware of this work, but if not would be helpful to tell them; I don't know if it'd be appropriate for what they need, but worst case they may have useful advice/feedback.

Bryce Harrington (bryce) wrote :

Meanwhile, for implementing this particular fix in-distro, it may be cleanest to package wsdd as its own discrete source package, and have Samba depend on it as Recommends. While it is just a single python script, it has several python dependencies, which may be easier to manage separately from samba itself, and the project appears to be actively maintained at present (https://github.com/christgau/wsdd/) so we may expect to see updates to the script.

wsdd is covered under the MIT License, so since this issue likely affects Debian as well, it may be worth submitting the package to Debian. The issue this fixes seems to be fairly widespread so there could be broad interest in this solution.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.