[gollem] Simple smb configuration

Ralf Lang lang at b1-systems.de
Tue Sep 3 17:24:19 UTC 2013


On 03.09.2013 19:03, Andy Rowe wrote:
>> -----Original Message-----
>> From: gollem-bounces at lists.horde.org [mailto:gollem-
>> bounces at lists.horde.org] On Behalf Of Ralf Lang
>> Sent: Tuesday, September 03, 2013 8:04 AM
>> To: gollem at lists.horde.org
>> Subject: Re: [gollem] Simple smb configuration
>>
>>>> <?php
>>>> $backends['smb'] = array(
>>>
>>> No. Well, it could, but it shouldn't, like earlier explained in this
>>> thread (and numerous times before). You almost NEVER want to add a
>>> complete backend configuration in backends.local.php. ALWAYS only
>>> change those values from the examples in backends.php that you NEED to
>> change.
>>> This is clearly explained in the documentation.
>>>
>> You are right.
>>
>> This would boil down to a backends.local.php like this:
>>
>> <?php
>> $backends['smb']['disabled'] = false;
>> $backends['smb']['params']['hostspec'] = 'yourhosthere';
>>
>> And so on.
>>
>> --
>> Ralf Lang
>> Linux Consultant / Developer
>> Tel.: +49-170-6381563
>> Mail: lang at b1-systems.de
>> B1 Systems GmbH
>> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
>> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
> 
> Now my backends.local.php is as follows:
> <?php
> $backends['ftp'] = array(
>     'disabled' => true,
> );
> $backends['smb'] = array(
>     'disabled' => false,
>     'params' => array(
>         'hostspec' => 'localhost',
>     ),
> );

No, this won't work. Wehn you use the array() notation, you clear all
keys and replace them with what's written. Either give all keys or use
the notation with the many [] as shown above:
>> <?php
>> $backends['smb']['disabled'] = false;
>> $backends['smb']['params']['hostspec'] = 'yourhosthere';


-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.horde.org/archives/gollem/attachments/20130903/af282f3d/attachment.bin>


More information about the gollem mailing list