Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migrations for SMB-related fields
In the DragonFish release we removed the clustering feature from TrueNAS. In prior versions we had some SMB share presets that were exposed only to clustering users via the webui, but were still accessible via the API. These presets existed for TrueCommand purposes to simplify cluster share creation. Unfortunately, some users may have set these via our APIs on non-clustered shares, and so this commit adds a migration to convert them to an appropriate SMB share configuration post-Cobia. Due to a longstanding bug in SCALE, there were circumstances in which pam_mkhomedir would create the directory `/nonexistent` when users had SMB homes shares. Starting in dragonfish / is readonly with the result that the pam_session for users with a home directory of `/nonexistent` to fail, resulting in SMB access being rejected in "obey pam restrictions" is set. This commit adds a migration to force home directories of SMB users to change to /var/empty if it was set to /nonexistent. (cherry picked from commit c268100)
- Loading branch information