SMB shares from EnOS server don't show up in network

I found the solution, and it was a very simple change:

server string = Server (Samba, EnOS) %h # <--- This is WRONG!

keeps your server from getting discovered. ONLY

server string = %h Server (Samba, EnOS)

works correctly. The %h variable needs to be at the front of the declaration. Never found this spelled out anywhere. If it is, please link to it.

I am going to mark my own post as the solution, so poor souls with the same issue googling this in the future can find the fix right away.

It wouldn’t have been possible to find it without @VictiniFan360’s excellent samba debugging howto, though. But I don’t want to mark his as solution for the aforementioned reason. Maybe we can label posts not only with ‘solution’, but also ‘howto’ or ‘best process’. This would be ideal.