Jump to content

Recommended Posts

Posted (edited)

edit: urmm i mean SMB Web Client http://moodle.org/mod/data/view.php?d=13&rid=991

 

Anyone had much success with this block, cant seem to find much documentation/discussion about how to setup this up.

 

Spent 5 mins trying to get it setup at the end of today without much success on my new moodle box running ubuntu 8.04/AD authentication :( anyone got any tips on how best to configure this block?

Edited by gaz350
Posted

make sure you can login to the directory first on the command line

smbclient -U username //server/username$

will attach to \\server\username$

if this fails you need to fix your samba configuration.

  • Thanks 1
Posted

connects fine from the command line.

Im kinda guessing my problem is with my cfgwinShareToSmb array. all im getting is a blank page! (with the default config i was getting lots of errors!)

 

Our home folders are set as \\server\share\username and the domain is 'lan' so following the config file notes i should have

$smb_cfg->cfgWinShareToSmb=array(
    '\\mcxh1r'=>'lan/mcxh1r'
);

 

any ideas?

Posted

I recall I had problems when I tried this before we upgraded to php5, but I wasn't 100% sure that was a cause.

I suggest looking through the log file of the webserver.

Posted

something to do with the moodle implementation of it, The orignal smbwebclient seems to work fine if i run it from the www folder.

 

nothing in the webserver logs that i can see

Posted (edited)

now getting a little bit more with this.

now getting some of the ui elements at the bottom

Picture 79.png

Edited by gaz350
Posted

This is interesting.

I recall a conversation with a NM in a school local to me. he said he needed to add two writable directories called data and style - then it worked, but without icons. I'm not sure if he got to the bottom of it.

 

At the time I thought this was very odd indeed - because our directory looks like this:

 

-rw-r--r-- 1 vhost apache  2077 Jan 22 11:16 block_smb_web_client.php
-rw-r--r-- 1 vhost apache  2190 Jan 22 11:10 class_smbwebclient_moodle.php
-rw-r--r-- 1 vhost apache 73763 Jan 22 09:21 class_smbwebclient.php
-rw-r--r-- 1 vhost apache  5106 Feb 12 18:53 config_smb_web_client.php
-rw-r--r-- 1 vhost apache   383 Jan 22 09:21 LICENCE.TXT
drwxr-xr-x 2 vhost apache  4096 Jan 22 10:49 pix
-rw-r--r-- 1 vhost apache  1580 Jan 22 09:21 README.TXT
-rw-r--r-- 1 vhost apache   893 Jan 22 09:21 smbwebclient_moodle.php

 

and works fine.

You error looks like it potentially is something to do with permissions. But I am really not sure, maybe something to do with php versions or ...?

It might be worth contacting the developer.

  • Thanks 1
Posted

I did some googleing and found someone else with an identical error, but no fix.

http://moodle.org/mod/forum/discuss.php?d=90218

 

I also just looked for the data and style directories.

I found reference to them in class_smbwebclient.php

 

var $inlineFiles = array (
       'data/languages.csv' => 'YWY7YWZ8YWZyaWthYW5zCmFyO2FyKFstX11bWzphbHBoYT
       'data/mime.types' => 'bWRiIGFwcGxpY2F0aW9uL21zYWNjZXNzCmRvYyBhcHBsaWNhd
       'style/disk.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABm
       'style/dotdot.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA
       'style/favicon.ico' => 'AAABAAEAICAAAAAAAACoCAAAFgAAACgAAAAgAAAAQAAAAAE
       'style/file.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABm
       'style/folder.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA
       'style/logout.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA
 'style/page.thtml' => 'PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhRE9DVFlQRSBodG1sCglQVU
 'style/view.thtml' => 'PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCI+CmZ1bmN0aW9uIH
       'style/printer.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAA
       'style/server.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA
       'style/workgroup.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XA
       'style/down.png' => 'iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAABm
       'style/up.png' => 'iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAABmJL
 'style/rename.png' => 'iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0
);

not sure how much help this is....

  • Thanks 1
Posted

I was testing the smb web client block out yesterday and was having the same problems as above but adding the writeable data and style folders as CyberNerd said solved it, icons and all.

 

I'm finding this method a nice alternative to WebDav.

 

Is it normal behaviour to log into moodle and then click on the "My Home Directory" link and then have to type the user credentials again?

Posted (edited)

i was thinking about this while sitting on the beach yesterday(sad i know!) and came to the same conclusion as you. Teach me for installing moodle from apt-get i guess. will see in the morning if i get a chance to look into it.

 

Edit: just had a quick look at it. seems to have sorted that problem. just not getting any files listed. getting closer!

 

edit: woot working!

Edited by gaz350
  • 4 months later...
Posted

I have installed these modules/addittions onto Ubuntu server runing Moodle 1.9

 

http://moodle.org/mod/data/view.php?d=13&rid=991

http://moodle.org/mod/data/view.php?d=13&rid=1722

 

And they work great! Only issue I had is that we did not use shares for individual users, so I had create them to be able to give access their home folder.

 

The developer of these modules has also been very approachable and helpful, so a BIG thanks for producing them.

 

This is a really cool moodle feature :)

  • 1 month later...
Posted (edited)

Hi guys,

 

I'm setting up an Internal moodle for ldap auth, SSO, etc and I wanted to implement the SMB Web Client but I have a few questions:

 

- The Block always says "Configuration for this block has not been completed!" I have been fiddiling with the config file and have never got rid of this message, I havent even seen any errors.

 

- My home directorys are stored in the following format:

 

\\Server\Homes$\students\2008\08StudentLoginName

 

the share is "\\Server\Homes$" which works when I connect to it using smbclient \\Server\Homes$ -U username.

 

Can I still use this block or do I need to share the 2008 folder to make it work?

 

Update: Sorry forgot to mention Im running Moodle 1.9

 

Kind Regards,

Chris

Edited by WiPPaH
Posted (edited)
Hi guys,

- My home directorys are stored in the following format:

 

\\Server\Homes$\students\2008\08StudentLoginName

 

Can I still use this block or do I need to share the 2008 folder to make it work?

 

You need to set the user's home folder. (See the profile tab in the properties for the user in Active Directory on your server - click the connect radio button, select a drive to map it to from the drop down list, then fill in the path to that user's home directory.)

Edited by duncane
Clarification
Posted
You need to set the user's home folder. (See the profile tab in the properties for the user in Active Directory on your server - click the connect radio button, select a drive to map it to from the drop down list, then fill in the path to that user's home directory.)

 

Sorry Duncane, I forgot to say its working fine in our AD environment (using the method you suggested), I believe the problem is trying to made the moodle block work with the homedrives which are nested under the share.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...