Windows Share access (AKA Network Drive Access, SMB Web Client)

Maintained by Guy Thomas
Access windows shares via a Moodle web interface.
Price option: Free

Supports Moodle 2.2-2.7 See all versions
Latest release: 11 years ago
Installations: 14
Downloads (last 90 days): 16

Frankenstyle name: block_smb_web_client
Blocks

Comments

Comments are no longer open for new posts. Existing comments remain available to read.


Guy... Most sincere apologies. For some reason I was not subscribed this forum and did not get the posts emailed. I am sorry.
Downloaded from Github. Deleted the old code and replaced with the updated stuff.
Hit the home page and it updated the database. Seems to be working..
Many many thanks.
Without seeming to be ungrateful... Just a small usuability thing. When using FF the login screen seems to be at the top-left of the window.
And I cannot seem to reproduce it .. but when I deleted the old code.. I had some 70 Gig of files in sub direcotories, that appear to be what had been downloaded. I will keep an eye on that and post if I notice it again...
Once again .. Thank you.
Peter
@Peter / @Ian - has the github hosted version fixed your issues with Ubuntu 16.04 (PHP7) ?
@Peter / @Ian
Download the latest master branch via git as there is a *possible* fix included for your Ubuntu 16.04 (PHP7) issue:
https://github.com/gthomas2/moodle-block_smb_web_client
@Peter / @Paul / @Ian - I am working on this at the moment with very limited time. Sorry I haven't been very communicative recently - I've had a lot on with work / other projects.
We have actually disabled it now as it simply refuses to work in our environment. Such a shame.

Bump... bump...... Please sad

Me too. Just upgraded our moodle site to Ubuntu 16.04 and moodle 3.1.2+ and getting exactly the same error.
Warning: uasort() expects parameter 1 to be array, null given in /mnt/d2/moodle/blocks/smb_web_client/class_smbwebclient.php on line 1296
A look at the code
# fix a smbclient bug (i think)
if (! isset($this->servers[$server]))
$this->servers[$server] = array ('name'=>$server, 'type'=>'server', 'comment'=>'');
# sort and select results
$results = array (
'network' => 'workgroups', 'workgroup' => 'servers',
'server' => 'shares', 'share' => 'files', 'folder' => 'files',
'printer' => 'printjobs'
);
if (isset($results[$this->type])) {
$this->results = $this->$results[$this->type];
# we need a global var for the compare function
$GLOBALS['SMBWEBCLIENT_SORT_BY'] = ($this->order <> '') ? $this->order : 'NA';
Here ? ========> uasort($this->results, array('samba', '_GreaterThan'));
}
return $this->status;
Does this smbclient bug still exist ? smile
TIA
Peter
Hi Guy
We have previously had this block working fine with Moodle 3.1 on Ubuntu 14.04. During the summer we have re-built the site on Ubuntu 16.04 with the latest version of Moodle 3.1.
When I open the block and enter my windows credentials, all I can see is a blank folder. The moodle error file lists the following eveytime I open the block:
[Mon Aug 01 15:05:14.389634 2016] [:error] [pid 3163] [client 10.25.9.7:6019] PHP Warning: uasort() expects parameter 1 to be array, null given in /var/www/html/vle.cove.hants.sch.uk/blocks/smb_web_client/class_smbwebclient.php on line 1296, referer: http://vle.cove.hants.sch.uk/blocks/smb_web_client/smbwebclient_moodle.php?sesskey=lcTf1D2k5X&share=2
Have I gone wrong somewhere?
Regards
Ian Williams
Having an issue using the block on moodle 3.0.2+
it has upgraded the database without any hiccups, smbclient is installed on utuntu 14.04 and connects fine but within the block settings nothing happens when we click on Add, next to shares. Reloading the page shows an input box for just a moment then it vanishes again.
Probably something silly, maube someone has an idea?
Cheers
Hi,
I am hoping someone can help. We have installed this plugin on moodle 2.9. I am testing it only as an admin at the moment. It seems to have installed just fine. I can get all the way to see my folders and files. But i can not open or download anything. Is there something i need to do, to be able to do this?
Hi Guy, we have managed to get rid of the error.
However, still can;t get it to authenticate automatically even with LDAP Capture installed.
Also we have the issue with files downloading corrupted or only 1k being sent.
I have disabled the AV scan, I have also used IP address rather than FQDN of the windows server that the share resides in.
Any ideas before I abandon this?
Hi Guy - Long time no speak!!
I have a few small issues with the WSAB Block on Moodle 2.7
The block is working, however. The home folder picks up the same name as the Block Title. Even though I have changed it in the config.
Secondly I get the message “Warning: Creating default object from empty value in E:\wwwroot\moodle\config.php on line 5 share definition missing pipe symbol” displayed at the top of the window each time we open a folder.
Thirdly, as our logins are linked to Active Directory, could we get the block to automatically authenticate us instead of asking for it again?
@Dan Jackson - I've uploaded a new version today that fixes the 'N' issue.
CentOS 7, Moodle 2.6, smbclient 4.1.1
On line 1587 of class_smbwebclient.php, add N to the list of attributes in order for this to work.
We recently migrated from an Ubuntu server to a CentOS server and found this block no longer worked properly (we were getting a rogue "N" at the end of file names and they were coming up OBJECT_NAME_NOT_FOUND). Our Moodle support company looked at it and let us know that this was the problem.
OK, I do have it working to a point.
I can see me shares, but when clicking on a file (word doc) it takes ages before it says starting download, then it only takes 10 minutes before it then says failed.
I can then take the same type file from my home computer and upload it with in a minute. I dont get it!!
windows server 2008r2
Moodle 2.7.2
latest version smbwebclient