Closed kaeser-sosae closed 8 years ago
Negative. I have modified the smb.conf and changed "workgroup = WORKGROUP" to "workgroup = NETBIOS_DOMAIN_NAME".
I do not have authentication errors. Capturing traffic on the file server with wireshark shows that authentication is successful.
Still, it is just looping me back to the root folder.
Additionally, I actually see no errors in the owncloud log relating to this, even with debug logging on.
Please note the mount.json file is identical to our 7.0.4 production system.
Further information:
I can connect to the SMB shared with the smbclient, list directories, navigate into sub directories, etc.
I notice in the packet capture on the file server an error "NT_STATUS_OBJECT_NAME_NOT_FOUND"
admin_user@bcgs-vm-owncloud8:/var/www/owncloud$ sudo smbclient -U domain_name/ella.smith%password //bcgs-vm-fs4/student-folders
Domain=[domain_name] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server 2012 R2 Standard 6.3]
smb: \> ls
. D 0 Sat Jul 4 01:00:02 2015
.. D 0 Sat Jul 4 01:00:02 2015
ella.smith D 0 Thu Jul 2 23:21:20 2015
57343 blocks of size 268435456. 37046 blocks available
smb: \> cd ella.smith
smb: \ella.smith\> ls
. D 0 Thu Jul 2 23:21:20 2015
.. D 0 Thu Jul 2 23:21:20 2015
.adobe D 0 Tue Apr 28 11:05:01 2015
.BCGS D 0 Thu Jul 2 23:22:22 2015
.dropbox D 0 Fri Feb 6 11:07:05 2015
.flexlmrc A 84 Wed Mar 25 10:24:22 2015
.ssh D 0 Thu Jan 29 11:16:48 2015
Adlm D 0 Wed Mar 25 10:24:22 2015
AppData D 0 Thu Jan 8 19:49:03 2015
Applications D 0 Thu Jul 2 22:07:56 2015
Contacts D 0 Wed Jul 8 12:38:36 2015
Cookies D 0 Wed Jul 8 03:18:39 2015
Desktop D 0 Tue Jul 7 08:55:37 2015
Documents D 0 Thu Jul 2 12:01:02 2015
Downloads D 0 Tue Jul 7 09:24:18 2015
Favorites D 0 Mon Jul 6 10:33:34 2015
Library D 0 Thu Jan 8 19:49:04 2015
Links D 0 Mon Jul 6 10:33:34 2015
Movies D 0 Fri Mar 6 11:48:41 2015
Music D 0 Fri Jul 3 15:35:44 2015
Pictures D 0 Tue Jul 7 09:23:32 2015
Public D 0 Fri Mar 6 11:48:43 2015
Saved Games D 0 Thu Jul 2 10:40:44 2015
Searches D 0 Tue Jul 7 09:23:31 2015
Videos D 0 Tue Jul 7 09:23:31 2015
57343 blocks of size 268435456. 37046 blocks available
smb: \ella.smith\> allinfo "\"
NT_STATUS_OBJECT_NAME_NOT_FOUND getting alt name for \ella.smith\\
smb: \ella.smith\> allinfo ""
NT_STATUS_OBJECT_NAME_NOT_FOUND getting alt name for \ella.smith\
Can you connect to the share using smbclient
but without specifying the domain? So smbclient -U ella.smith%password ...
.
Yes I can... although that's probably on account of the workgroup setting that I've changed in smb.conf?
What server are you connecting to? Active Directory, NT4 file server, Samba etc?
We really need a way to specify the domain in the configuration for SMB and/or SMB-OC...
Further information:
I've managed to get the home folder mounted now by using our dfs namespace. Using the direct server name and share name still does not work at all. The problem now is that I can see the contents of the home folder, but cannot browse into any of the folders.
I can assure you that all permissions are correct etc, as the same SMB server is currently being used in production with OC 7.0.4.
mount.json file:
"\/$user\/files\/Home Folder": {
"id": 1,
"class": "\\OC\\Files\\Storage\\SMB_OC",
"options": {
"host": "internal.domain.name",
"username_as_share": false,
"share": "dfs_namespace",
"root": "student-folders"
},
"priority": 90,
"storage_id": "12"
},
Error in owncloud.log:
{"reqId":"WcrTPT\/6Io7TdMdHEvys","remoteAddr":"10.0.15.3","app":"index","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\Exception\",\"Message\":\"Unknown error (NT_STATUS_PATH_NOT_COVERED) for \\\/student-folders\\\/ella.smith\\\/Applications\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(365): Icewind\\\\SMB\\\\Parser->checkForError(Array, '\\\/student-folder...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(130): Icewind\\\\SMB\\\\Share->parseOutput(Array, '\\\/student-folder...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/student-folder...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(269): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('ella.smith\\\/Appl...')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(90): OC\\\\Files\\\\Storage\\\\SMB->filetype('ella.smith\\\/Appl...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(124): OC\\\\Files\\\\Storage\\\\Common->is_dir('ella.smith\\\/Appl...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(148): OC\\\\Files\\\\Storage\\\\Common->isCreatable('ella.smith\\\/Appl...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(605): OC\\\\Files\\\\Storage\\\\Common->getPermissions('ella.smith\\\/Appl...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/encryption.php(149): OC\\\\Files\\\\Storage\\\\Common->getMetaData('ella.smith\\\/Appl...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(113): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->getMetaData('ella.smith\\\/Appl...')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(141): OC\\\\Files\\\\Cache\\\\Scanner->getData('ella.smith\\\/Appl...')\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(265): OC\\\\Files\\\\Cache\\\\Scanner->scanFile('ella.smith\\\/Appl...', 1, -1, NULL, true)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(419): OC\\\\Files\\\\Cache\\\\Scanner->scan('ella.smith\\\/Appl...', true, 1)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/utils\\\/scanner.php(125): OC\\\\Files\\\\Cache\\\\Scanner->backgroundScan()\\n#14 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/ajax\\\/scan.php(55): OC\\\\Files\\\\Utils\\\\Scanner->backgroundScan('')\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/ownclo...')\\n#16 [internal function]: __lambda_func(Array)\\n#17 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('?lambda_3242', Array)\\n#18 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/aja...')\\n#19 \\\/var\\\/www\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#20 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Parser.php\",\"Line\":66}","level":4,"time":"2015-07-08T18:52:29+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/scan.php?fallback=true&fallback_id=0&force=false&dir=&requesttoken=mrojZPCIvTsCDZSw5%2BRcyQ2HyBYF4p"}
Authentication (sending the domain name through) is not the issue. At least not for us. We just modify smb.conf and it works fine.
Perhaps your problem is related to this smbclient bug? That only applies for the DFS test though... the root cause is still undetermined.
@icewind1991 Any ideas?
I am experiencing the same problem, any news?
I did an upgrade from OC 8.04 to 8.1 and although not very smooth eventually almost everything has worked out. However, the external storage, specifically has an issue on both the upgrades I did. CentOS6.6/PHP 5.4 and CentOS 7/PHP 5.5 both experience the same exact problem. The shared directories fail (won't mount) if they are more than one directory down from the shared directory.
Both of these servers were running perfectly prior to the upgrade but both fail and will not mount. The attached screen grab pretty much explains the problem. Green Light - Red Light! LOL
I have not seen this specific issue posted anywhere but the one above is close. We use the OC as a interface to share various files on different servers on our network. It works great and is a very useful tool.
Thank OC Dev Team!
Jon
Yes @capnjb exactly, thats the problem!
upgrade from OC 8.0.4 to 8.1 ... unable to mount SMB shares on a Windows SBS 2011 server. Was working fine before the upgrade. I can mount a share on a Win 7 Pro machine though.
I can mount shares and noted in my example above. Most of the shares are on Buffalo_Tech NAS devices on the LAN and a very few are Windows 7 Pro. In my case as you can see, the mount is limited to the "root" shared directory drilling down even one more directory fails and will not mount.
This worked extremely well with no issue prior to the upgrade to 8.1... it has worked back to version 4.5 when I started up the 1st ownCloud. There really was no reason to upgrade except to increase performance. I should have mentioned there were 2 other errors reporting in the Admin menu on BOTH systems but they seem to work fine:
The Internet is connected and works fine on the LAN and from the WAN. I will play with the memcache once this pesky mounting problem is solved. One thing at a time...so I don't break things worse. J
i think we just need to wait for new updates....
Hi Devs,
I'm shelving the upgrade to 8.1 for the moment.
I'm more than happy to work with you, though, to get to the bottom of this - happy to do some testing, provide logs, etc.
Please let me know if you need anything further from me.
Regards, Gavin
fwiw just trying out this as new functionality, but this pops up along the way - might be that (at least in our case) the user doesn't get expanded correctly? the log really says smb::foo
"app":"core","message":"Exception while scanning storage \"smb::foo@ournas\/ourshare\/\/\": Icewind\\SMB\\Exception\\AuthenticationException: ","level":3,
i confirm - can't connect directly on server by name but when i use our dfs root it's working as expected! so it's a workaround at least where DFS is avail.
"user": { "all": { "\/$user\/files\/SMB": { "id": 5, "class": "\OC\Files\Storage\SMB", "options": { "host": "domain.local", "user": "tester", "password": "", "share": "data", "root": "public\share", "password_encrypted": "sdfsdfsdfsdfsdfsd" }, "priority": 100, "storage_id": "31" } } }
I am still not able to mount anything with SMB, just waiting for new patch to come out…
Met vriendelijke groet: Gert-Jan Slot
[cid:CC33FB0A-C3E8-4664-B08B-5F3C283035A2] AUTOMATISERING – INTERNETDIENSTEN – BUSINESS SOFTWARE
Kroezenhoek 5 7683 PP DEN HAM OV Tel: +31 546 – 641144 Fax: +31 546 – 641133 Email: gertjan@directict.nlmailto:gertjan@directict.nl Website: http://www.directict.nlhttp://www.directict.nl/
Van: Vladimir [mailto:notifications@github.com] Verzonden: dinsdag 14 juli 2015 13:56 Aan: owncloud/core CC: NOC | Direct ICT Onderwerp: Re: [core] ownCloud 8.1 SMB with OC login not working (#17499)
i confirm - can't connect directly on server by name but when i use our dfs root it's working as expected! so it's a workaround at least where DFS is avail.
[2015-07-14 16-53-53 admin - owncloud - mozilla firefox]https://cloud.githubusercontent.com/assets/7998636/8672560/fe29e5fc-2a48-11e5-84fe-3748f62e3b87.png
"user": { "all": { "\/$user\/files\/SMB": { "id": 5, "class": "\OC\Files\Storage\SMB", "options": { "host": "domain.local", "user": "tester", "password": "", "share": "data", "root": "public\share", "password_encrypted": "sdfsdfsdfsdfsdfsd" }, "priority": 100, "storage_id": "31" } } }
— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/17499#issuecomment-121215034.
We are have same problem, don't work a samba after update for OC 8.1. If I'm try smbclient -U polter%password \myWin2012\ it's work. From OC on tcpdump "Error: STATUS_OBJECT_NAME_NOT_FOUND" . We try rebuild ldap configs, change servers and from Windows 2003 it can connect.
oc 8.1 tot SMB 2012 = not working, oc 8.1 tot SMB 2008 = working..
any clue?
Anyone tried different SMB version on Server 2012?
How You can cange SMB verson on Windows 2012?!
Disabling SMB3 on Server 2012 would be an interesting test - I am unable to do this in the current environment. Is anyone able to test using the above link?
No, You set off SMB2 and 3 together (To disable SMBv2 and SMBv3 on the SMB server, run the following cmdlet: Set-SmbServerConfiguration -EnableSMB2Protocol $false) and thet have no effect, i was try it.
IMHO this is an ownCloud issue... if you notice the issue or similar issue(s) seem to occur across several different OS's: a few flavors of Linux and Windows Server... The original poster is using Ubuntu and I am using CentOS... now the latest posters are running Windows Servers.
I have the same problem after upgrading to oC8.1 from 8.0.4 on Ubuntu 15.04. smbclient connects fine to the Win2012 R2 shared folders but oC gives out errors no matter what settings i change.
@neopaws same here! very frustrating :(
Can anyone who has the issue run the tests from https://github.com/icewind1991/SMB
composer install
from the project directoryphpunit
from the tests folderNote: for safety run unit tests on a separate smb share or subfolder
Additionally you can try using the native php-smbclient bindings by installing https://github.com/eduardok/libsmbclient-php which is known to be a bit more reliable
Getting the following error running the install_libsmbclient.sh script...
@kaeser-sosae sudo apt-get install zip unzip
Sorted that one, now getting error running phpenv. "Command not found".
I think I'll let this for someone with the knowhow.
Cheers, Gavin
I also upgraded and suddenly I am having issues with some smb shares. I am testing now and collecting data that I will post later. Using CentOS 7.
Ok, I have been testing some things and this is what I came up with. Configuration was working before I updated to Owncloud 8.1. Owncloud server: Centos 7.1, PHP 5.4, Owncloud ldap module enabled, not joined to domain. Windows and Solaris servers are joined to an Active Directory domain.
Test results:
windows 2012 server phoenix without dfs installed:
-sharename: bla, everyone full rights
with oc login: status "green". share does not show in main files section, but does show in external storage section. on access->unknown error, return to main files section
log:
{"reqId":"Vaykm0GEnBo5AJG9NaAViwAAAAc","remoteAddr":"172.16.66.112","app":"files","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\AuthenticationException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php(37): Icewind\\\\SMB\\\\Connection->checkConnectionError('session setup f...')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(346): Icewind\\\\SMB\\\\Connection->read()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(122): Icewind\\\\SMB\\\\Share->execute('allinfo \\\"\\\"')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(287): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\SMB->file_exists('')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1175): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php(861): OC\\\\Files\\\\View->getFileInfo('\\\/SMB', true)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/ajax\\\/list.php(35): OC\\\\Files\\\\Filesystem::getFileInfo('\\\/SMB')\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#11 [internal function]: __lambda_func(Array)\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('?lambda_1072', Array)\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/aja...')\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php\",\"Line\":59}","level":4,"time":"2015-07-20T07:34:51+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2FSMB&sort=name&sortdirection=asc"}
{"reqId":"VayknEGEnBo5AJG9NaAVjAAAAAc","remoteAddr":"172.16.66.112","app":"core","message":"Exception while scanning storage \"smb::foo@phoenix\/bla\/\/\": Icewind\\SMB\\Exception\\AuthenticationException: ","level":3,"time":"2015-07-20T07:34:53+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2F&sort=name&sortdirection=asc"}
-sharename: bla, everyone full rights
without oc login, but manual authentication details(not specifying domain): status "green". share shows in main files section and is fully functional
-sharename: data, only oc user full access rights
without oc login, but manual authentication details(not specifying domain): status "green". share shows in main files section, but is not functional.
the share opens, but none of the directories are visible. Directories accesible only to oc user nor the directory accessible to everyone (New folder).
A file (121074644.pdf) upload fails in owncloud with an error message and is not listed, but the file DOES arrive at the smb server.
log:
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path '$RECYCLE.BIN' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:03+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path '121074644.pdf' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'New folder' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'p' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'p.m' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'pack' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'software' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
{"reqId":"VazAit59ca84gEBH5rQkfwAAAAs","remoteAddr":"172.16.66.112","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'System Volume Information' is not accessible or present !!!","level":0,"time":"2015-07-20T09:34:04+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FSMB"}
windows 2012 server topcat with dfs installed (but NOT using dfs):
-sharename: bla, everyone full rights
with oc login: status "green". share does not show in main files section, but does show in external storage section. on access->unknown error, return to main files section
log:
{"reqId":"VayftjLiqbbxX8Mmh97guQAAAAo","remoteAddr":"172.16.66.112","app":"files","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\AuthenticationException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php(37): Icewind\\\\SMB\\\\Connection->checkConnectionError('session setup f...')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(346): Icewind\\\\SMB\\\\Connection->read()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(122): Icewind\\\\SMB\\\\Share->execute('allinfo \\\"\\\"')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(287): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\SMB->file_exists('')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1175): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php(861): OC\\\\Files\\\\View->getFileInfo('\\\/SMB', true)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/ajax\\\/list.php(35): OC\\\\Files\\\\Filesystem::getFileInfo('\\\/SMB')\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#11 [internal function]: __lambda_func(Array)\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('?lambda_339', Array)\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/aja...')\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php\",\"Line\":59}","level":4,"time":"2015-07-20T07:13:59+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2FSMB&sort=name&sortdirection=asc"}
{"reqId":"VayfuDLiqbbxX8Mmh97gugAAAAo","remoteAddr":"172.16.66.112","app":"core","message":"Exception while scanning storage \"smb::foo@topcat\/bla\/\/\": Icewind\\SMB\\Exception\\AuthenticationException: ","level":3,"time":"2015-07-20T07:14:01+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2F&sort=name&sortdirection=asc"}
-sharename: bla, everyone full rights
without oc login, but manual authentication details(not specifying domain or specifying domain): status "red". does not show share in files section
log:
{"reqId":"VayhQzAlOv4RqTJ5YGjnqAAAAAA","remoteAddr":"172.16.66.112","app":"files_external","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\Exception\",\"Message\":\"Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for \\\/\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(365): Icewind\\\\SMB\\\\Parser->checkForError(Array, '\\\/')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(130): Icewind\\\\SMB\\\\Share->parseOutput(Array, '\\\/')\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(133): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(408): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(497): OC\\\\Files\\\\Storage\\\\Common->test(false)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(123): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array, false)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/globalstoragescontroller.php(157): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#8 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(11, 'SMB', '\\\\OC\\\\Files\\\\Stora...', Array, NULL, Array, Array, 100)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(108): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#13 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#15 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#16 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Parser.php\",\"Line\":66}","level":4,"time":"2015-07-20T07:20:36+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/files_external\/globalstorages\/11"}
Solaris samba server hercules:
-sharename: storage
with oc login: status "green". share does not show in main files section, but does show in external storage section. on access->unknown error, return to main files section
log:
{"reqId":"Vay4JA3yYw7S@3RzA6gYYgAAAAU","remoteAddr":"172.16.66.112","app":"core","message":"Exception while scanning storage \"smb::foo@hercules\/storage\/\/\": Icewind\\SMB\\Exception\\AuthenticationException: ","level":3,"time":"2015-07-20T08:58:16+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2F&sort=name&sortdirection=asc"}
{"reqId":"Vay4MQ7lGiFAf4FKGbr7KAAAAAY","remoteAddr":"172.16.66.112","app":"files","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\AuthenticationException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php(37): Icewind\\\\SMB\\\\Connection->checkConnectionError('session setup f...')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(346): Icewind\\\\SMB\\\\Connection->read()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(122): Icewind\\\\SMB\\\\Share->execute('allinfo \\\"\\\"')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(287): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\SMB->file_exists('')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(211): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1175): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->file_exists('')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php(861): OC\\\\Files\\\\View->getFileInfo('\\\/SMB', true)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/ajax\\\/list.php(35): OC\\\\Files\\\\Filesystem::getFileInfo('\\\/SMB')\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#11 [internal function]: __lambda_func(Array)\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('?lambda_179', Array)\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/aja...')\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Connection.php\",\"Line\":59}","level":4,"time":"2015-07-20T08:58:26+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2FSMB&sort=name&sortdirection=asc"}
{"reqId":"Vay4Mg7lGiFAf4FKGbr7KQAAAAY","remoteAddr":"172.16.66.112","app":"core","message":"Exception while scanning storage \"smb::foo@hercules\/storage\/\/\": Icewind\\SMB\\Exception\\AuthenticationException: ","level":3,"time":"2015-07-20T08:58:27+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2F&sort=name&sortdirection=asc"}
-sharename: storage
without oc login, but manual authentication details(not specifying domain): status "green". everythings works as expected.
I have not had any luck with dfs, unlike other people who posted in this thread. I have tested smbclient on all the shares mentioned above (including dfs) with oc user, not specifying the domain and had no issues.
@icewind1991 results of the phpunit test for the servers mentioned in my earlier post:
-------------------------------------------------------------------------------------------------------------------------------
windows 2012 server topcat:
-------------------------------------------------------------------------------------------------------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 63 / 300 ( 21%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 126 / 300 ( 42%)
SSSSSSSSSSSSSSSSSSSS...........S............................... 189 / 300 ( 63%)
............................................................... 252 / 300 ( 84%)
...................EEEEEEE.EEEEEEEEEEEEE.......E
Time: 14.82 seconds, Memory: 11.50Mb
There were 21 errors:
1) Icewind\SMB\Test\Share::testStat with data set #0 ('simple')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e76cff5/simple
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
2) Icewind\SMB\Test\Share::testStat with data set #1 ('with spaces_and-underscores')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e783b92/with spaces_and-underscores
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
3) Icewind\SMB\Test\Share::testStat with data set #2 ('single'quote'')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e7985d5/single'quote'
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
4) Icewind\SMB\Test\Share::testStat with data set #3 ('日本語')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e7ad664/日本語
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
5) Icewind\SMB\Test\Share::testStat with data set #4 ('url %2F +encode')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e7c1eef/url %2F +encode
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
6) Icewind\SMB\Test\Share::testStat with data set #5 ('a somewhat longer filename th...enames')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e7d6048/a somewhat longer filename than the other with more charaters as the all the other filenames
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
7) Icewind\SMB\Test\Share::testStat with data set #6 ('$as#d€££Ö€ßœĚęĘĞ...ΦΩΫ')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e8047da/$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:404
8) Icewind\SMB\Test\Share::testSetMode with data set #0 ('simple')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e823558/simple
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
9) Icewind\SMB\Test\Share::testSetMode with data set #1 ('with spaces_and-underscores')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e837529/with spaces_and-underscores
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
10) Icewind\SMB\Test\Share::testSetMode with data set #2 ('single'quote'')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e84e902/single'quote'
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
11) Icewind\SMB\Test\Share::testSetMode with data set #3 ('日本語')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e864396/日本語
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
12) Icewind\SMB\Test\Share::testSetMode with data set #4 ('url %2F +encode')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e87b07a/url %2F +encode
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
13) Icewind\SMB\Test\Share::testSetMode with data set #5 ('a somewhat longer filename th...enames')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e892ca0/a somewhat longer filename than the other with more charaters as the all the other filenames
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
14) Icewind\SMB\Test\Share::testSetMode with data set #6 ('$as#d€££Ö€ßœĚęĘĞ...ΦΩΫ')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e8c14a8/$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:426
15) Icewind\SMB\Test\Share::testSubDirs with data set #0 ('dir/sub/foo.txt')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e8d8766/dir/sub/foo.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:504
16) Icewind\SMB\Test\Share::testSubDirs with data set #1 ('bar.txt')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e91b9fe/bar.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:504
17) Icewind\SMB\Test\Share::testSubDirs with data set #2 ('single'quote'/sub/foo.txt')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e94005e/single'quote'/sub/foo.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:504
18) Icewind\SMB\Test\Share::testSubDirs with data set #3 ('日本語/url %2F +encode/asd.txt')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e96bd30/日本語/url %2F +encode/asd.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:504
19) Icewind\SMB\Test\Share::testSubDirs with data set #4 ('a somewhat longer folder than...at.txt')
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5e9a3e34/a somewhat longer folder than the other with more charaters as the all the other filenames/followed by a somewhat long file name after that.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:504
20) Icewind\SMB\Test\Share::testDelAfterStat
Icewind\SMB\Exception\NotFoundException: Invalid request for /test/55ace5ea08db9/foo.txt
/root/testing/SMB/src/Parser.php:49
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:516
21) Icewind\SMB\Test\Share::testStatRoot
Icewind\SMB\Exception\Exception: Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for /
/root/testing/SMB/src/Parser.php:66
/root/testing/SMB/src/Share.php:365
/root/testing/SMB/src/Share.php:130
/root/testing/SMB/tests/AbstractShare.php:536
FAILURES!
Tests: 300, Assertions: 212, Errors: 21, Skipped: 147.
-------------------------------------------------------------------------------------------------------------------------------------
Windows 2012 server phoenix:
-------------------------------------------------------------------------------------------------------------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 63 / 300 ( 21%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 126 / 300 ( 42%)
SSSSSSSSSSSSSSSSSSSS...........S............................... 189 / 300 ( 63%)
............................................................... 252 / 300 ( 84%)
................................................
Time: 35.59 seconds, Memory: 10.75Mb
OK, but incomplete, skipped, or risky tests!
Tests: 300, Assertions: 426, Skipped: 147.
------------------------------------------------------------------------------------------------------------------------------------
Solaris Samba server hercules :
------------------------------------------------------------------------------------------------------------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 63 / 300 ( 21%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 126 / 300 ( 42%)
SSSSSSSSSSSSSSSSSSSS...........S............................... 189 / 300 ( 63%)
............................................................... 252 / 300 ( 84%)
...........................FFFFFFF..............
Time: 32.79 seconds, Memory: 11.00Mb
There were 7 failures:
1) Icewind\SMB\Test\Share::testSetMode with data set #0 ('simple')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
2) Icewind\SMB\Test\Share::testSetMode with data set #1 ('with spaces_and-underscores')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
3) Icewind\SMB\Test\Share::testSetMode with data set #2 ('single'quote'')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
4) Icewind\SMB\Test\Share::testSetMode with data set #3 ('日本語')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
5) Icewind\SMB\Test\Share::testSetMode with data set #4 ('url %2F +encode')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
6) Icewind\SMB\Test\Share::testSetMode with data set #5 ('a somewhat longer filename th...enames')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
7) Icewind\SMB\Test\Share::testSetMode with data set #6 ('$as#d€££Ö€ßœĚęĘĞ...ΦΩΫ')
Failed asserting that false is true.
/root/testing/SMB/tests/AbstractShare.php:442
FAILURES!
Tests: 300, Assertions: 300, Failures: 7, Skipped: 147.
I hope this helps in some way.
@icewind1991 After installing https://github.com/eduardok/libsmbclient-php as you suggested, the results of the tests seem to have remained the same, but owncloud behaves different! I can now successfully mount my home-directory from the windows 2012 server topcat. Still not with the oc login option, but by manually specifying the username/password. That did not work before.
@icewind1991 I have repeated my tests and all tests where I specify the username and password are now successful, including dfs shares. The only thing not working is using the oc-login option instead of the username/password combo..
What did you do exactly? @nrbrt
Met vriendelijke groet: Gert-Jan Slot
[cid:CC33FB0A-C3E8-4664-B08B-5F3C283035A2] AUTOMATISERING – INTERNETDIENSTEN – BUSINESS SOFTWARE
Kroezenhoek 5 7683 PP DEN HAM OV Tel: +31 546 – 641144 Fax: +31 546 – 641133 Email: gertjan@directict.nlmailto:gertjan@directict.nl Website: http://www.directict.nlhttp://www.directict.nl/
Van: nrbrt [mailto:notifications@github.com] Verzonden: maandag 20 juli 2015 15:20 Aan: owncloud/core core@noreply.github.com CC: NOC | Direct ICT NOC@directict.nl Onderwerp: Re: [core] ownCloud 8.1 SMB with OC login not working (#17499)
@icewind1991https://github.com/icewind1991 I have repeated my tests and all tests where I specify the username and password are now successful, including dfs shares. The only thing not working is using the oc-login option instead of the username/password combo..
— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/17499#issuecomment-122880689.
@directict I installed the native php-smbclient bindings mentioned earlier by icewind1991 from https://github.com/eduardok/libsmbclient-php.
@nrbrt hmm on my centos 6.6 machine i get: configure: error: Could not find libsmbclient.so or symbol smbc_open. Check config.log for more information.
:(
@directict You probably need to install libsmbclient-devel first
@nrbrt wow ☺ its working now! Before I implement this on our production env, should I do this? or will ownCloud fix this trough their update channel?
Van: nrbrt [mailto:notifications@github.com] Verzonden: maandag 20 juli 2015 16:06 Aan: owncloud/core core@noreply.github.com CC: NOC | Direct ICT NOC@directict.nl Onderwerp: Re: [core] ownCloud 8.1 SMB with OC login not working (#17499)
@directicthttps://github.com/directict You probably need to install libsmbclient-devel first
— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/17499#issuecomment-122895782.
@directict Great! If you need this urgently and the oc-login option is not important for your prod env, you could. You might want to take a look at the impact of the dfs problems mentioned here: https://github.com/eduardok/libsmbclient-php/issues/13 if you use dfs in your environment. I hope they will fix this soon in their update channel though.
Dear nrbrt,
We dont use dfs just standard shares on 2012r2
Thx for your help.
Met vriendelijke groet, Gert-jan Slot Direct ICT
Van: nrbrtmailto:notifications@github.com Verzonden: 20-7-2015 16:30 Aan: owncloud/coremailto:core@noreply.github.com CC: NOC | Direct ICTmailto:NOC@directict.nl Onderwerp: Re: [core] ownCloud 8.1 SMB with OC login not working (#17499)
@directicthttps://github.com/directict Great! If you need this urgently and the oc-login option is not important for your prod env, you could. You might want to take a look at the impact of the dfs problems mentioned here: eduardok/libsmbclient-php#13https://github.com/eduardok/libsmbclient-php/issues/13 if you use dfs in your environment. I hope they will fix this soon in their update channel though.
— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/17499#issuecomment-122902998.
@directict graag gedaan
I have located the root of my problem. The temporary dummy credentials in the file /apps/files_external/lib/smb_oc.php are not being replaced with the true credentials of the oc-login. This part is not working as it should:
// dummy credentials, unused, to satisfy constructor
$user = 'foo';
$password = 'bar';
if (\OC::$server->getSession()->exists('smb-credentials')) {
$params_auth = json_decode(\OC::$server->getCrypto()->decrypt(\OC::$server->getSession()->get('smb-credentials')), true);
$user = \OC::$server->getSession()->get('loginname');
$password = $params_auth['password'];
} else {
// assume we are testing from the admin section
}
When I replace "foo" and "bar" for real credentials things work as expected. I am not sure if I should open a separate issue for this... Anyone?
Another interesting discovery...the personal settings page does not work for the user account I was testing with and I thought this was a separate issue. It is not. After using a different user for whom the personal settings menu does work, the share also appeared. Pfff....I think there is a solution for the blank personal settings page about to come out. Keeping fingers crossed.
In the mean time, I edited my personal.php like mentioned in: https://github.com/owncloud/core/issues/17516 and everything is working now.
Steps to reproduce
(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:
The content of config/config.php:
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:
LDAP configuration
External storage screenshot