Re: Simple smb configuration
Ralf Lang <[email protected]> Tue, 03 Sep 2013 19:24:19 +0200
| Newsgroups | gmane.comp.horde.gollem |
|---|---|
| Message-ID | <[email protected]> |
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 -- gollem mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
signature.asc
(application/pgp-signature, 263 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlImG0YACgkQCs1dsHJ/X7C0KwCguxxjYTeZJpgCHUCLFUN7X3Qp qAgAn1w3FnAWEWfNcJ6+G02Ds3/nZE1X =x/Nm -----END PGP SIGNATURE-----