cifsd-team / ksmbd-tools

ksmbd kernel server userspace utilities
GNU General Public License v2.0
92 stars 27 forks source link

Any plan to implement function NMBD provides? #305

Open Nardol opened 1 year ago

Nardol commented 1 year ago

Hello,

I wish to switch from Samba to KSMBD. The major part I use SMB file sharing is with VLC, to stream on my TV from a home server.

I know there is the solution proposed in #99 which will add the server with its IP address. But if there are favorites referencing the server with its netbios name, all has to be done from scratch. Same for history for example.

Is there any plan to support what NMBD provides? Which would allow old systems to discover KSMBD.

I have not found how to have NMBD without Samba nor have found any alternative tool but if there is one I would be interested and would immediately close this issue :slightly_smiling_face: developing it myself looks complicated unfortunately.

And if I am wrong and this is implemented, is there an idea about why VLC does not find my server by its name? In fact if I don't apply Avahi service file, I cannot find my server at all in discovered shares.

putnam commented 3 months ago

You didn't say what OS you are using to run VLC.

How old are we talking? NetBIOS has been deprecated for a pretty long time.

You might want wsdd and avahi. wsdd for windows clients, avahi for mac/linux. Samba by default automatically enrolls itself with avahi if it's present, but ksmbd-tools won't; you need to make a service file in Avahi for it.

Nardol commented 3 months ago

You didn't say what OS you are using to run VLC.

Android TV, more precisely some Chromecast with Google TV.

How old are we talking? NetBIOS has been deprecated for a pretty long time.

Looks like this deprecation has not come to VLC developers :slightly_frowning_face: fortunately MDNS works as I specified in the description of this issue.

You might want wsdd and avahi. wsdd for windows clients, avahi for mac/linux. Samba by default automatically enrolls itself with avahi if it's present, but ksmbd-tools won't; you need to make a service file in Avahi for it.

I have done it, for WSDD I use WSDD Native and have made the service file for Avahi and have already prepared to the case I would migrate to Systemd-Resolved.

As I specified before, VLC fortunately discovers using MDNS, which I stated in the issue description. But I thought implementing Netbios could allow an alternative.