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

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

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:


[2] After unzipping it rename the python script:

sudo mv wsdd-master/src/ 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:


[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:

Good info on how Samba was affected by this:

From Samba's FAQ, it looks like there has been some work upstream at supporting WSD internally, and there is a patch proposed (the file's references this work):

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 ( 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.

Andreas Hasenack (ahasenack) wrote :

This came up in our "untouched in 180 days" bug triage. I found where someone apparently packaged this, but not conforming to the debian policy (as stated by the author), and no ITP bug yet. I found a debian WNPP bug (, but for a C version of this service (, and this was taken from a Netgear NAS according to the README file. It also has received no further commits for more than a year.

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.