Enabling Network Discovery of Samba Shares with WSD Service
This article will show how to enable reliable network discovery of samba shares withe the WSD service.
At the end of this article you will be able to access your samba shares in the “Network Neighbourhood” in Windows Explorer.
This service works with standalone samba servers as well as CTDB.
- Samba shares preconfigured
- Windows DNS record that points to samba/ctdb server, in the example that host-name is LABSAMBACLUSTER
- Install “wsd” service on system
yum install wsdd
- Open firewalld ports
firewalld --permanent --add-port=3702/udp firewalld --permament --add-port=5357/tcp
- Edit wssd config file. If in a CTDB environment do this on every node.
- LABSAMBACLUSTER is the name that will show up in the “Network Neighbourhood” this needs to match the DNS record created already.
echo "OPTIONS="-4 -n LABSAMBACLUSTER"" > /etc/sysconfig/wsdd
- Restart “wsdd” service. If in a CTDB environment do this on every node.
systemctl restart wsdd
- Verify you can reach your shares through the network neighborhood