Re: Simple smb configuration

"Andy Rowe" <[email protected]> Tue, 3 Sep 2013 13:43:51 -0400
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
> -----Original Message-----
> From: Ralf Lang [mailto:[email protected]]
> Sent: Tuesday, September 03, 2013 1:24 PM
> To: Andy Rowe; [email protected]
> Subject: Re: [gollem] Simple smb configuration
> 
> On 03.09.2013 19:03, Andy Rowe wrote:
> >> -----Original Message-----
> >> From: [email protected] [mailto:gollem-
> >> [email protected]] On Behalf Of Ralf Lang
> >> Sent: Tuesday, September 03, 2013 8:04 AM
> >> To: [email protected]
> >> 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: [email protected]
> >> 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: [email protected]
> B1 Systems GmbH
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537


 Oh... thanks so much for that tip!
Now backends.local.php looks like:
<?php
$backends['ftp']['disabled'] = true;
$backends['smb']['disabled'] = false; 
$backends['smb']['params']['hostspec'] = 'localhost';

Message says: Connection to smb server failed

-- 
gollem mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]