Can you ping the fqdn from the linux box?
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
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
or something else?
should i use Domain or our FQDN?
Can you ping the fqdn from the linux box?
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?
Yes it should be
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
'\\Servername' => 'domain.local/servername',
If you have this and your content is still empty, then I would check permissions on the test home drive.
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.
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?
just the server name at the moment.
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:
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.Code:smbclient -L servername -U DOMAIN/username
First part of the config file sets up who the servers are and how to refer to them:
The next section sets up the shares...Code:$smb_cfg->cfgWinShareToSmb=array( '\\server01'=>'DOMAIN/server01', '\\server02'=>'DOMAIN/server02' );
...where shareX is the shared folder name as displayed when browsing to that server via start > run > \\servernameCode:$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) ) );
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.
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?
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.
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
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)