SMB share auxiliary parameter user variable gets filtered in 11.3?

Description

in old 11.2u8 we had a home share configured by NOT using the home share check box, instead using a custom name "Privat" as share name and adding "path = /mnt/vol1/Privat/%U" in auxiliary parameters.

after upgrading to 11.3 accessing \\server\Privat now does NOT lead to your personal home directory, instead you see ALL homes. checking with "testparm" reveals the problem, the path parameter as entered in auxiliary parameters apparently gets filtered, the "/%U" is removed and testparm shows the share parameter "path = /mnt/vol1/Privat".

looking at the share configuration in the UI, the parameter was correctly migrated, it is entered correctly with "/%U" but it does not reach the samba daemon/configuration in the system.

on the other hand, if we do use the checkbox "home share" we CAN access the individual home directory using \\server\homes, but it is not possible to supply a custom name for that home share instead of "homes".

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
April 21, 2020 at 2:39 PM

Andrew Walker 
April 6, 2020 at 11:02 AM

PR here: https://github.com/freenas/freenas/pull/4519

If you want to hot-patch your server, the diff is pretty minimal. File on your server is located under: /usr/local/lib/python3.7/site-packages/middlewared/etc_files/local/smb4_share.conf

It is a good idea to clone your boot environment and ssh into the server prior to modifying the file. Once you have modified it, run the command "service middlewared oneresart" and then "midclt call etc.generate smb_share".

Complete

Details

Assignee

Reporter

Due date

Components

Fix versions

Priority

More fields

Katalon Platform

Created March 31, 2020 at 3:20 AM
Updated July 1, 2022 at 4:49 PM
Resolved April 23, 2020 at 6:59 PM