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.

Hello I have installed the latest version of this onto our moodle server and I have come to abit of a quandary!! it works in firefox ! but IE 10 no... Chrome no.... Opera no.... etc all browser versions are up to date and I have tested this in compatibility modes in IE all to no avail. Could anybody shed some light into this any advice is greatly appreciated.
Thanks
Cheers Guy, I thought I had already installed that but in the chaos of upgrading it looks like I had forgotten it.
Colin
Hi Colin. You need the latest version of the ldap capture plugin too.
Hi Guy,
We recently upgraded Moodle to 2.5.1 and installed the latest version of the smb web client. Users now have to log in using their Moodle details before they can access files for each session they are online. This wasn't the case with previous versions. What are we missing?
Cheers
Colin
Thank you very much Guy, this solved the problem. When setting up my config, I kept the SMBClient Location field empty since the default value was identical to my smbclient path - seems that was no good idea ;-()
But now: Next question...
Now, there is the need to log in to the share. In our case, the login is the same as for moodle. Any chance to pass over the authentication?
Since all users have read-only access to this share, I could also think about another way: Could your block use an given account that is saved in it's config to log in to a specific share?
Thank you very much in advance!
BTW Markus, the field in the config that needs to be populated with /usr/bin/smbclient is called "SMBClient Location"
Markus Speissegger, sorry for the late reply (been very busy at work) take a look at the line that starts "Jun 25 16:16:52 EXEC CMD ATTEMPT 0: '//validserver/validshare' - Its basically trying to execute a share WITHOUT an smbclient command. Make sure you have got the smb client location specified in your config - e.g. '/usr/bin/smbclient'
Hi Guy. I have exactly the same problem as Andrew Lowkis (of June 7 2013): After logging in to a network share, I don't see any files or folders.
I'm using Moodle 2.4.2 (Build: 20130311) and smb web client 2013060602.
This is my config:
- Webserver OS: Linux (using Ubuntu 10.04)
- SMBClient Location: (Standard)
- Shares: \\validserver\validshare; no filters
- AntiVirus Checking: No
- Username Prefix: validdomain\
- AD field for HomeDir (none)
- Traverse homeDir: no
- Display All Shares on Site Page: yes
- Enable 'mod_rewrite': no
- Allow anonymous login: yes (or no; there is no difference)
- Hide hidden files: yes
- Hide Admin Shares: yes
- Force downloads: yes
- Max Zip Size: 0
- Authentication Method: Argument (or any other - no difference)
- Hide Printer Shares: yes
- Logging Level: Log ALL Output
- Force right-click > Save: no
- Force SSL: no
This is the syslog entry of a single access:
Jun 25 16:16:52: Path =.
Jun 25 16:16:52:.
Jun 25 16:16:52: EXEC CMD ATTEMPT 0 : '//validserver/validshare' -c 'dir' -U "validdomain/validuser%****" -d 0 -O 'TCP_NODELAY IPTOS_LOWDE
Jun 25 16:16:52: [smbclient]
Jun 25 16:16:52: sh: //validserver/validshare: not found
Jun 25 16:16:52:.
Jun 25 16:16:52: [/smbclient]
Accessing the Windows Share on the server's console using smbclient works fine with the same user.
Do you have any ideas what to try next? - Thank you very much!
Hi Carol. If its an old version you probably need to re-add your shares. If you go into the config for the block you should see a table where you can add shares. Its a lot easier to add shares now - you can just put them in standard windows share format - e.g. //server1/staff
Thanks for replying so quickly Guy. It was 2012012700, which I now see was a LONG time ago!
Hi Carol. What version of the block did you have installed prior to the latest version?
Hi Guy
Thanks for this super block. I've been using it happily for a while on my Moodle 2.4 but just applied the latest version and when I click the link to a share, the pop up window displays a 'failed to connect' message. Is there some protocol change I need to know about?
Andrew, the best thing to do is set a high log level in the block settings page and then check the logs for your web server - for linux this is normally in /var/log/syslog - from the command line you would type cat /var/log/syslog or tail -f /var/log/syslog
You can then see the smb client commands that are being executed - take a look at the commands in the syslog and try executing them manually from the command line (note it masks out the password in the log so you will need to replace **** with your password)
Hi. I have installed this on test server and all seems to work except that once I login to a network drive I get a blank screen, no files/folders. I can see the headers for Name - Type - Size etc. Any clues?
New version 2013060602 released - fixes bug with lib.php and role membership detection