samba-in-kubernetes / samba-operator

An operator for a Samba as a service on PVCs in kubernetes
Apache License 2.0
120 stars 24 forks source link

Allow for shares with public access (no authentication) #322

Open pfaelzerchen opened 11 months ago

pfaelzerchen commented 11 months ago

Currently, I provide some traditional SMB shares from my old server solution that can be accessed from the local network without username and password. Use cases are:

As far as I understand the documentation, one have to choose for some kind of user authentication. It would be nice to have an option, e.g. spec.mode=public in the SmbSecurityConfig to make that possible.

pfaelzerchen commented 11 months ago

I took the ConfigMap, Secrets, Service and Deployment that was created by the operator and did the adjustments, necessary for my use case. I came up with the following additions to the config map necessary to make any computer and device working as expected:

globals.globals.options: two lines must be added:

"server role": "standalone server",
"map to guest": "bad user"

Actually, only SONOS S2 needed them, Windows and Linux hosts did work without.

The shares just need

"guest ok": "yes"

I hope this helps. Tutorials argue that one should add "guest only" to the shares in this case for security reasons. For my special use case, it doesn't seem to really make a difference.

phlogistonjohn commented 11 months ago

Thank you for the feedback!