Here’s a workaround if you encounter this error when using smbtree or using the network browser in Nautilus:
vi /etc/samba/smb.conf
You may need to reboot in order for Nautilus to pick up the change.