I'm in the process of setting up a new moodle server (1.9 running on ubuntu server 8.04 LTS) and I'm running into trouble getting the SMB web client block to work.
Users can login using LDAP against our AD (server 2003) domain no problem. The error I keep getting is :
Error Message: No home directory specified in ldap for this user
Turning debug messages on in the moodle admin panel gives more info:
Warning: ldap_search() [function.ldap-search]: Search: Operations error in /usr/share/moodle/auth/ldap/auth.php on line 1653
Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in /usr/share/moodle/auth/ldap/auth.php on line 1661
Notice: Undefined index: homeDirectory in /usr/share/moodle/blocks/smb_web_client/class_smbwebclient_moodle.php on line 113
print_header() was sent a string as 3rd (Nework Home Directory) parameter. This is deprecated in favour of an array built by build_navigation(). Please upgrade your code.
* line 2422 of lib/weblib.php: call to debugging()
* line 33 of blocks/smb_web_client/smbwebclient_moodle.php: call to print_header()
Our users have a homedrive mapped in their AD profile. Their H: drives map to a file server separate to the domain controller and are in the format:
\\servername\curric\y7\username\My Documents where curric is the root share
I've tried sharing the user's home drive directly i.e. creating a share of their My Documents folder e.g \\servername\username
I can log into the file server and list directories using:
smbclient -U 'DOMAIN\username' \\servername\username -
or
smbclient -U 'DOMAIN\username' '\\servername\curric\y7\username\My Documents' which wil only take me to the root of the curric share.
I've tried to get this block working before on an older server and got the same error and was never able to resolve it. If anyone can shed any light as to what might be going on I'd be very grateful!
Regards
Marc

I would appreciate any help with this error too?

UPDATE
I have changed the config to this:
'\\xxx-svr-001'=>'DOMAIN.internal/xxx-svr-001',
'\\xxx-svr-002'=>'DOMAIN.internal/xxx-svr-002',
'\\xxx-svr-003'=>'DOMAIN.internal/xxx-svr-003',
Which now works for staff users, but for students it has the error saying home dir doesnt exist in LDAP - when it does.
We're CC3.
Just to add, it asks for a username and password too - can it not send these from the details it gets from Moodle meaning no details need to be input.
Finally got around to giving this another look. Priority having gone up due to the school getting a load of netbooks and wanting to dish 'em out to Y9. Access to home drives is now quite important...
I've managed to get a little further. I know that the moodle LDAP capture plugin is authenticating against AD but that AD is not returning all of the attributes, resulting in the undefined index: homeDirectory error. If I dump the the contents of the array that the smb_web_client uses to grab the homeDirectory attribute, the latter is not included. The users I'm testing with definitely have a homeDirectory set as it shows against the users object when I look in adsiedit.
Inititally I thought it was a permissions problem for the bind user not being able to see all the attributes. I've given the bind user permissions to see everything that looked like it might help. I've also tried binding with a domain admin account as that should have access to everything.
This one has got me well and truly stumped. Anyone got any ideas
I created this block to work with LDAP but I've only ever been able to test it with Active Directory.
Recently, someone contacted me with a similar problem and it was because they were using open LDAP.
The home directory field is different to that of Active Directory.
The latest version of the block has a config variable that you can set to tell it to use a different field in Active Directory to retrieve the home directory.
http://www.ossett.wakefield.sch.uk/w...web_client.zip
Cheers
Guy
Ah Guy... need to make an appointment for me n' Steve to come see you or vice versa within the next few weeks! Similar required at our end - just had absolutely zero time to look at Moodle yet...
Hia..........,
I have setup " Windows Share Web Client " when i click on MyHomeDirectory it comeup with errror message saying SSL-error message
Also i got stuck with adding code for LDAP capture authentication, for Developer notes it say to add code to " block / wraper / etc " am not sure about the path where the code has to go. ( to capture user credentials and PassOn for other SSO)
Moodler server - Ubuntu 8.04 lts
File server - Windows 2003 server
Any help would appreciated!
Cheers :0)
Last edited by kieran8055; 7th April 2009 at 12:47 PM.
Hi,
Smbclient is working from command line, but from moodle site its not working, getting error:
on IE it says page cannot be displayed,
on Mozilla it say
Secure Connection Failed
An error occurred during a connection to www.moodlesite.co.uk.
Can't connect securely because the site uses an older, insecure version of the SSL protocol.
(Error code: ssl_error_ssl2_disabled)
The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
* Please contact the web site owners to inform them of this problem.
Any suggestions or help Please,
Problem solved for moodle and SMB Client Problem.
Cheers
There are currently 1 users browsing this thread. (0 members and 1 guests)