+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 41
Virtual Learning Platforms Thread, Windows Share Web Client Help in Technical; im trying to get Windows Share Web Client to work, i have samba working on the server and i can ...
  1. #1
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12

    Windows Share Web Client Help

    im trying to get Windows Share Web Client to work, i have samba working on the server and i can access any folder or file i want to, but i cant get Windows Share Web Client to diplay the items.

    i think its something to do with

    $smb_cfg->cfgWinShareToSmb=array();

    i cant figure out what i need to put in there

    the current server is for windows \\server-dc\username
    and when i use samba i use //server-dc/username

    should i set

    $smb_cfg->cfgWinShareToSmb=array(
    '\\server-dc'=>'//server-dc'
    );

    or something else?

    should i use Domain or our FQDN?

    thanks

  2. #2
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,208
    Thank Post
    225
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30
    Can you ping the fqdn from the linux box?

    Wes

  3. #3
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    i can, im using cygwin to link to my IIS6 web server, im not sure what i should set as the samba server name, should it be the same as the normal network name?

  4. #4

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,078
    Thank Post
    6
    Thanked 209 Times in 189 Posts
    Rep Power
    53
    Yes it should be

  5. #5
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,208
    Thank Post
    225
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30
    It should be yes? Have you had a look at one of my earlier threads with this issue? At: Windows Share Web Client and Moodle 1.9

    Wes

  6. #6
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    i have, i can get the smbclient to work fine, i can ping the server that has the file on the ip/name and FQDN, i just cant get the plugin to connect to the server i need,

    i think this is what is confusing me "mydom/myserver"

    would that be "domain/server-dc" or "FQDN/server-dc"? or even something else, at the moment its just showing me the top menus with no content listed

  7. #7

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,078
    Thank Post
    6
    Thanked 209 Times in 189 Posts
    Rep Power
    53
    I have

    '\\Servername' => 'domain.local/servername',

    If you have this and your content is still empty, then I would check permissions on the test home drive.

  8. #8
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    i have tried that, our FQDN and just domain, and its all the same, cant get any content to come up, what should the permissions be, allow the user to see? they have full control of the folder at the moment.

  9. #9

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,078
    Thank Post
    6
    Thanked 209 Times in 189 Posts
    Rep Power
    53
    My recommendation for testing and testing only, we gave our test user full control of the home folder and any folder that it was contained in, for example students. The user has to have permissions to transverse the folders.

    Are you users home drives set in AD via a server name or a domain.local DFS share?

  10. #10
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    just the server name at the moment.

  11. #11
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    895
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    Before any of it will work, you need to have the smbclient binary installed on the webserver - see http://www.citricity.com/moodlegpl/w...on_windows.pdf
    Once it's installed, test it with the following command line:

    Code:
    smbclient -L servername -U DOMAIN/username
    Where servername is the netbios name (just the server name, not it's FQDN). You should be promtped for your password, and it should then list all shares/resources available to you on that server. Once you've proven that to be working, you can move on to sorting the block out.

    First part of the config file sets up who the servers are and how to refer to them:

    Code:
    $smb_cfg->cfgWinShareToSmb=array(
        '\\server01'=>'DOMAIN/server01',
        '\\server02'=>'DOMAIN/server02'
    );
    The next section sets up the shares...

    Code:
    $smb_cfg->cfgWinShares=array(
        'share1'=>array(
            'share'=>'DOMAIN/server01/Share1',
            'title'=>'Staff Resources',
            'courses'=>array(1)
        ),
        'share2'=>array(
            'share'=>'DOMAIN/server01/Share2',
            'title'=>'Shared Documents',
            'courses'=>array(1)
        )
        ,
        'share3'=>array(
            'share'=>'DOMAIN/server2/share1',
            'title'=>'ITTeam',
            'courses'=>array(53)
        )
    	,
        'share4'=>array(
            'share'=>'DOMAIN/server02/share2',
            'title'=>'Admin Data',
            'courses'=>array(56)
        )
    );
    ...where shareX is the shared folder name as displayed when browsing to that server via start > run > \\servername
    The 'courses' field is the Moodle course to which that share is associated. Those enrolled to that course then automatically have that share displayed in the block. Permissions are derived from username and password, which should be your user's AD username and password, which should be acquired using the LDAPCapture plugin for Moodle.
    Last edited by Marci; 20th June 2011 at 11:26 AM.

  12. #12
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    ive gone through the setup, SMBCLIENT works and i can connect to any share i want using the apropriate username and password, ive tried setting up the config as above but i dont get any files shown in the block.

    Is DOMAIN listerally Domain?

    can i test the block without LDAPCapture and then intergrate it when its working?

    thanks

  13. #13
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    895
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    Where in our case FQDN is Horbury.Internal, the DOMAIN used in the config file is just 'HORBURY' (ie: the one-word netbios name).

    I've NEVER managed to get any output from the block without LDAPCapture, as the password isn't correctly encrypted to present to AD. If you're seeing blankness, it's usually because as far as the block is concerned you don't have permission to see the contents of the share in question, which is usually due to not getting the password across succesfully. This is the purpose of LDAPCapture. Grab it from Moodle.org: open-source community-based tools for learning, and set it as your default auth plugin.

  14. #14

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,078
    Thank Post
    6
    Thanked 209 Times in 189 Posts
    Rep Power
    53
    No it has to be done with LDAP Capture im afraid, I believe it is LDAPCapture that gets the home drive details etc.

    The domain is literally just that, say I worked at Town High School and my domain was ths.local and my server was called Bob then in my config file I would have

    '\\Bob'=>'ths.local/Bob'

    May I suggest something else, try creating a new account totally, as in within Active Directory and setup the home drive etc. Then login to Moodle (for the first time) using this account, you will have to do the standard account details if it requests you to. Then try the block.

    The reason I say try a new account is because I have had problems with an account that was created (not through syncing) by logging in when I only had LDAPServer on, I got a blank folder.

  15. #15
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    179
    Thank Post
    8
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    thanks, ive stuck our netbios name in the place of domain, going to change over to LDAP Capture later, does the cronjob need to be modified to get it working? i use the auth_ldap_sync_users.php to transfer new users over overnight.

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Windows Share Web Client and Moodle 1.9
    By wesleyw in forum Virtual Learning Platforms
    Replies: 16
    Last Post: 20th June 2011, 10:35 AM
  2. Moodle - windows web client (smb)
    By _techie_ in forum Virtual Learning Platforms
    Replies: 7
    Last Post: 5th November 2010, 09:15 AM
  3. Moodle Windows Share Web Client
    By itgeek in forum Virtual Learning Platforms
    Replies: 5
    Last Post: 16th September 2010, 11:48 AM
  4. How to Deploy the ICA Web Client Through Web Interface 4.5
    By cookie_monster in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 30th April 2009, 11:14 AM
  5. Moodle & Windows Share Web Client
    By clodhopper in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 12th March 2009, 10:43 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
  •