[gollem] SMB access is only possible when key is "smb"

Andrew Watkins andrew at dcs.bbk.ac.uk
Mon Apr 25 12:29:27 UTC 2016


Getting Gollem slowly working and since I want to access multiple 
servers I need to use different keys (If interested you can see 
"Multiple file servers possible?").

The following works with no problems:
$backends['smb']['disabled'] = false;
$backends['smb']['name'] = 'H drive';
$backends['smb']['driver'] = 'smb';
$backends['smb']['hordeauth'] = true;
$backends['smb']['params']['hostspec'] = 'eros';
$backends['smb']['params']['port'] = 139;
$backends['smb']['params']['shares'] = 'homes';
$backends['smb']['params']['smbclient'] = '/usr/bin/smbclient';
$backends['smb']['loginparams'] = array();
$backends['smb']['attributes'] = array(
         'type',
         'name',
         'edit',
         'download',
         'modified',
         'size',
         'permission'
);

but I a change the key name: smb => smbh it fails

$backends['smbh']['disabled'] = false;
$backends['smbh']['name'] = 'H drive';
$backends['smbh']['driver'] = 'smb';
$backends['smbh']['hordeauth'] = true;
$backends['smbh']['params']['hostspec'] = 'eros';
$backends['smbh']['params']['port'] = 139;
$backends['smbh']['params']['shares'] = 'homes';
$backends['smbh']['params']['smbclient'] = '/usr/bin/smbclient';
$backends['smbh']['loginparams'] = array();
$backends['smbh']['attributes'] = array(
         'type',
         'name',
         'edit',
         'download',
         'modified',
         'size',
         'permission'
);

I get a popup "Login to File Manager"
Mode: Automatic
Backend: H drive

and in the log file I see "HORDE User wstudent is not authorized for 
File Manager (Host: xxxx.bbk.ac.uk). [pid 208 on line 324 of 
"/var/php/5.3/pear/Horde/Registry.php"]

Looks like I am missing a value for $backends['smbh'].... which has been 
set by default when I use $backends['smb']..

Thanks again.

Andrew




-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * formaly Solaris SIG *
* UKOUG Tech committee *



More information about the gollem mailing list