samba icon indicating copy to clipboard operation
samba copied to clipboard

Healthcheck fails if encrypted connection is desired

Open lenucksi opened this issue 5 years ago • 2 comments

Thanks for creating this nice container. I've added a GLOBAL: "smb encrypt = desired" line to my compose-file to enable encrypted connections. This works well and the server starts serving encrypted connections. However, the healthcheck of the container does not return healthy any more once this is set. An attempt to run the healthcheck on the within the container console yields a segfault of the smbclient.

Running the command smbclient healthcheck command with an added -e parameter works as long as there is a valid user provided. I could not figure out quickly if and what the % sign in the healthcheck command smbclient -L \\localhost -U % -m SMB3 is replaced with.

Do you have any idea how this can be fixed? It might also be worth to add the above GLOBAL stanza to the defaults, as it still is possible to connect without encryption.

lenucksi avatar Jul 04 '20 11:07 lenucksi

You can try to declare the healthcheck configuration in docker-compose.yml to override the default.

cobolbaby avatar Jul 27 '20 08:07 cobolbaby

Thanks for creating this nice container. I've added a GLOBAL: "smb encrypt = desired" line to my compose-file to enable encrypted connections. This works well and the server starts serving encrypted connections. However, the healthcheck of the container does not return healthy any more once this is set. An attempt to run the healthcheck on the within the container console yields a segfault of the smbclient.

Running the command smbclient healthcheck command with an added -e parameter works as long as there is a valid user provided. I could not figure out quickly if and what the % sign in the healthcheck command smbclient -L \\localhost -U % -m SMB3 is replaced with.

Do you have any idea how this can be fixed? It might also be worth to add the above GLOBAL stanza to the defaults, as it still is possible to connect without encryption.

can you share your docker-compose file?

edocollado avatar Oct 21 '20 16:10 edocollado