Moodle & SMB Web Client Problem
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 -
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!
Moodle SMB client not returning home directories
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.