ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001513ClearOSapp-flexshare - Flexsharespublic2014-01-13 14:302019-06-07 03:18
Reporterdloper 
Assigned ToNickH 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version6.5.0 
Target Version6.5.0Fixed in Version 
Summary0001513: Group names with spaces fail authentication mechanism for CIFS-based flexshares.
DescriptionWhen 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.
Steps To ReproduceUsing 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.
Additional InformationThis 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
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0012121)
NickH (developer)
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 (developer)
2019-06-07 03:18

Migrated to https://gitlab.com/clearos/clearfoundation/app-flexshare/issues/11 [^]

- Issue History
Date Modified Username Field Change
2014-01-13 14:30 dloper New Issue
2014-01-14 11:42 user2 Status new => confirmed
2019-06-07 02:51 NickH Note Added: 0012121
2019-06-07 03:18 NickH Note Added: 0012131
2019-06-07 03:18 NickH Status confirmed => closed
2019-06-07 03:18 NickH Assigned To => NickH
2019-06-07 03:18 NickH Resolution open => suspended