We have a Samba share on an Ubuntu 14.04 server. Per-machine logging is switched on via log.%m. I understand from the Samba documentation that %m is the NetBIOS machine name for the client machine.
Our network is a mixture of PCs and Macs. The PCs all run Windows 7, the Macs all run Yosemite. Each PC is being given it's own individual log file - log.david, log.andrew etc. All the Macs are being logged into the same file - log.workstation. However, all of these machines have their own NetBIOS names configured via System Preferences > Networking > Ethernet > Advanced > WINS - and all are connected to the correct workgroup. The name "workstation" doesn't appear anywhere on any of them.
So why isn't Samba seeing the configured name?