ClearFoundation Tracker - ClearOS
View Issue Details
0001513ClearOSapp-flexshare - Flexsharespublic2014-01-13 14:302019-06-07 03:18
dloper 
NickH 
lowminoralways
closedsuspended 
6.5.0 
6.5.0 
0001513: Group names with spaces fail authentication mechanism for CIFS-based flexshares.
When setting up a flexshare, groups that have spaces in the group name will fail to authenticate using the File mechanism (Samba/CIFS) in app-flexshare. It is untested whether the same is true for FTP, HTTP and others.
Using AD connector, create a flexshare and assign a group (like 'domain users' or other) to the flexshare. You will be able to access your home directory but not any flexshare with a group that uses a space.
This is likely fixed by putting quotations marks around the group name assigned in /etc/samba/flexshare.conf:
    valid users = @"%D\user group name", @"user group name"

instead of:
    valid users = @"%D\user group name", @user group name
No tags attached.
Issue History
2014-01-13 14:30dloperNew Issue
2014-01-14 11:42user2Statusnew => confirmed
2019-06-07 02:51NickHNote Added: 0012121
2019-06-07 03:18NickHNote Added: 0012131
2019-06-07 03:18NickHStatusconfirmed => closed
2019-06-07 03:18NickHAssigned To => NickH
2019-06-07 03:18NickHResolutionopen => suspended

Notes
(0012121)
NickH   
2019-06-07 02:51   
Yes, it is as simple as that. In /usr/clearos/apps/flexshare/libraries/Flexshare.php, change:
                $linestoadd .= "\tvalid users = @\"%D" . '\\' . trim($share["ShareGroup"]) . "\", @" .
                    trim($share["ShareGroup"]) . "\n";


to:
                $linestoadd .= "\tvalid users = @\"%D" . '\\' . trim($share["ShareGroup"]) . "\", @\"" .
                    trim($share["ShareGroup"]) . "\"\n";
(0012131)
NickH   
2019-06-07 03:18   
Migrated to https://gitlab.com/clearos/clearfoundation/app-flexshare/issues/11 [^]