+ Post New Thread
Results 1 to 14 of 14
Virtual Learning Platforms Thread, Moodle: webSMBClient block in Technical; 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 ...
  1. #1
    gaz350's Avatar
    Join Date
    Jul 2007
    Location
    Rutland, east.leicestershire :P
    Posts
    579
    Thank Post
    47
    Thanked 49 Times in 41 Posts
    Rep Power
    28

    Moodle: webSMBClient block

    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?
    Last edited by gaz350; 8th May 2008 at 06:03 PM.

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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.

  3. Thanks to CyberNerd from:

    gaz350 (9th May 2008)

  4. #3
    gaz350's Avatar
    Join Date
    Jul 2007
    Location
    Rutland, east.leicestershire :P
    Posts
    579
    Thank Post
    47
    Thanked 49 Times in 41 Posts
    Rep Power
    28
    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
    Code:
    $smb_cfg->cfgWinShareToSmb=array(
         '\\mcxh1r'=>'lan/mcxh1r'
    );
    any ideas?

  5. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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.

  6. #5
    gaz350's Avatar
    Join Date
    Jul 2007
    Location
    Rutland, east.leicestershire :P
    Posts
    579
    Thank Post
    47
    Thanked 49 Times in 41 Posts
    Rep Power
    28
    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

  7. #6
    gaz350's Avatar
    Join Date
    Jul 2007
    Location
    Rutland, east.leicestershire :P
    Posts
    579
    Thank Post
    47
    Thanked 49 Times in 41 Posts
    Rep Power
    28
    now getting a little bit more with this.
    now getting some of the ui elements at the bottom
    Attached Images Attached Images
    Last edited by gaz350; 9th May 2008 at 03:05 PM.

  8. #7


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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:

    Code:
    -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.

  9. Thanks to CyberNerd from:

    Ashm (10th May 2008)

  10. #8


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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

    Code:
    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....

  11. Thanks to CyberNerd from:

    gaz350 (11th May 2008)

  12. #9

    Join Date
    Oct 2007
    Location
    Northamptonshire
    Posts
    312
    Thank Post
    21
    Thanked 82 Times in 69 Posts
    Rep Power
    45
    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?

  13. #10
    gaz350's Avatar
    Join Date
    Jul 2007
    Location
    Rutland, east.leicestershire :P
    Posts
    579
    Thank Post
    47
    Thanked 49 Times in 41 Posts
    Rep Power
    28
    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!
    Last edited by gaz350; 11th May 2008 at 11:08 PM.

  14. #11
    monkeyx's Avatar
    Join Date
    Nov 2006
    Posts
    364
    Thank Post
    8
    Thanked 52 Times in 41 Posts
    Rep Power
    26
    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

  15. #12

    Join Date
    Jun 2007
    Posts
    35
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0
    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
    Last edited by WiPPaH; 11th November 2008 at 10:24 AM.

  16. #13
    duncane's Avatar
    Join Date
    Dec 2006
    Location
    Dewsbury, West Yorkshire
    Posts
    156
    Thank Post
    66
    Thanked 9 Times in 9 Posts
    Rep Power
    17
    Quote Originally Posted by WiPPaH View Post
    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.)
    Last edited by duncane; 11th November 2008 at 11:17 AM. Reason: Clarification

  17. #14

    Join Date
    Jun 2007
    Posts
    35
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by duncane View Post
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle Portfolio Block
    By palmer_eldritch in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 26th January 2007, 08:19 PM
  2. another 1 to block
    By in forum Links
    Replies: 33
    Last Post: 15th December 2006, 02:14 PM
  3. One to block
    By indiegirl in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 14th June 2006, 02:25 PM
  4. New centre block
    By Dos_Box in forum General EduGeek News/Announcements
    Replies: 8
    Last Post: 11th October 2005, 02:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •