degol
September 13, 2021, 3:13pm
#1
I realize this is partially owncloud, partially ubuntu, but is there a way to force owncloud to use SMB2 or greater when connecting to a windows external share? I can connect to any external share on a server that still allows SMB1, but any with SMB1 disabled is failing. I can connect in linux if I specify the SMB version but I can’t seem to find a way to do that in owncloud. I’ve edited the smb.conf with min and max client protocol but it still failing to connect in owncloud.
Any thoughts? I can include more info about my setup if needed, I left it out as the issue seems to be pretty specifically I just need to get owncloud to use SMB2.
1 Like
Are you sure you’ve edited the file right? It’s client min protocol
and client max protocol
options.
In addition, it’s highly recommended to install the libsmbclient-php library (https://github.com/eduardok/libsmbclient-php ). I’m not sure if there are packages for that library or you’ll need to compile it by yourself
degol
September 14, 2021, 11:46am
#3
Thank you for the response, I do have libsmbclient-php installed. Also, below is the exact lines from my smb.conf file.
workgroup = WORKGROUP
client min protocol = SMB2
client max protocol = SMB3
degol
September 15, 2021, 1:38pm
#4
Well, interestingly enough i did find a workaround here (odd since this references a very old version and I’m on the latest release - although I believe its more of a config on the linux side than the owncloud side):
opened 04:18PM - 08 Jul 15 UTC
closed 02:33PM - 07 Feb 16 UTC
Type:Bug
app:files_external
### Steps to reproduce
1. Enable external storage app
2. Enable SMB / CIFS with … OC Login as external storage option
3. Add external storage with Folder name: "Home Folder", Host: "bcgs-vm-fs4", Share: "student-folders", Remote subfolder: "$user".
(The above is identical to ownCloud 7.0.4 configuration that we currently have in production.)
### Expected behaviour
"Home Folder" directory in external storage section is populated with the user's home directory contents.
### Actual behaviour
When clicking on "Home Folder" in the external storage section, it just swings back to the root folder.
### Server configuration
**Operating system**: Ubuntu 14.04.2 LTS
**Web server:** Apache 2.4.7
**Database:** MySQL 5.5.43
**PHP version:** 5.5.9
**ownCloud version:** 8.1.0 (stable)
**Updated from an older ownCloud or fresh install:** Fresh install
**List of activated apps:**
```
Enabled:
- activity: 2.0.1
- files: 1.1.9
- files_external: 0.2.3
- files_locking:
- files_pdfviewer: 0.7
- files_sharing: 0.6.2
- files_texteditor: 0.4
- files_videoviewer: 0.1.3
- firstrunwizard: 1.1
- provisioning_api: 0.2
- templateeditor: 0.1
- user_ldap: 0.6.1
Disabled:
- encryption
- external
- files_trashbin
- files_versions
- gallery
- user_external
- user_webdavauth
```
**The content of config/config.php:**
```
$CONFIG = array (
'instanceid' => 'oc4315gpo40d',
'trusted_domains' =>
array (
0 => 'cloud8-internal.internal.domain.name',
),
'datadirectory' => '/var/www/owncloud/data',
'overwrite.cli.url' => 'http://cloud8-internal.internal.domain.name/owncloud',
'dbtype' => 'mysql',
'version' => '8.1.0.8',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud_user',
'logtimezone' => 'UTC',
'installed' => true,
'ldapIgnoreNamingRules' => false,
);
```
**Are you using external storage, if yes which one:** SMB
**Are you using encryption:** no
**Are you using an external user-backend, if yes which one:** Active Directory
**mount.json file:**
```
{
"group": {
"All Students": {
"\/$user\/files\/Home Folder": {
"id": 1,
"class": "\\OC\\Files\\Storage\\SMB_OC",
"options": {
"host": "bcgs-vm-fs4",
"username_as_share": false,
"share": "student-folders",
"root": "$user"
},
"priority": 90,
"storage_id": "6"
}
}
}
}
```
#### LDAP configuration
```
+-------------------------------+----------------------------------------------------------------------------------------+
| Configuration | |
+-------------------------------+----------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | 0 |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | CN=Service ownCloud v8,OU=Service Accounts,OU=Users,DC=internal,DC=domain,DC=name |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | DC=internal,DC=domain,DC=name |
| ldapBaseGroups | ou=groups,DC=internal,DC=domain,DC=name |
| ldapBaseUsers | ou=users,DC=internal,DC=domain,DC=name |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 1 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | samaccountname |
| ldapExpertUsernameAttr | samaccountname |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(|(objectclass=group))(|(cn=All Staff)(cn=All Students))) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | member |
| ldapHost | internal.domain.name |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(bcgsSynergeticID=*))(samaccountname=%uid)) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapNoCase | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | displayname |
| ldapUserFilter | (&(bcgsSynergeticID=*)) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+----------------------------------------------------------------------------------------+
```
#### External storage screenshot
<img width="951" alt="screen shot 2015-07-09 at 12 07 41 am" src="https://cloud.githubusercontent.com/assets/13239751/8575438/8f4e0d9e-25ce-11e5-9f17-80425e4bc0f5.png">
Like in the comments, it works if I use the DFS path rather than the server DNS name or IP address. I’m not sure why that is the case but its working so I’m happy! Hopefully this helps out anyone else with the issue.
1 Like
epalma
September 15, 2021, 1:52pm
#5
what is your smbclient version you have?
If you have the smbclient version 4.7-, update it to newest or at least the 4.8+ version.
degol
September 15, 2021, 2:48pm
#6
Looks like i’m on 4.7.6. I will attempt to update this evening.
1 Like
epalma
September 15, 2021, 2:50pm
#7
Please do it and let me know the results
system
Closed
December 14, 2021, 2:51pm
#8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.