Version 2.2
You can now rename files from dropdown menu and select language clicking in its display (ideas from Nils Erik Svangård)
smbwebclient-2.2.tgz
You can now rename files from dropdown menu and select language clicking in its display (ideas from Nils Erik Svangård)
smbwebclient-2.2.tgz
9 Comments:
Just out of curiosity, how secure is this? I'm a little skeptical of being able to open my Windoze network to the workd, even though it could be a huge asset to me to have my files accessable from a remote location. if you could drop me a line back on this that would be great
mark.guy-NOSPAM-@gmail.com
I have some recommendations to get better security with smbwebclient.php.
First of all is using HTTPS instead of HTTP. It is almost a need for any real installation.
Second, the cache feature speed up downloading but it makes copies of everything in a folder (this folder must be innacesible from web or another local user). If you cannot protect this folder, disable this feature (default is disabled).
Third, although in future releases an ACL layer will be implemented, you need to control who has access to smbwebclient.php with your web server (i.e. .htaccess)
Hey!
The rename interface looks great!
/nisse
nilserik@gmail.com
Hi again!
I found another thing that would make it a bit easier.
The dropdownmenu should be visable at all times so that if I have choosen to upload something, but realize that I just want to rename something I can use the dropdown menu, or perhaps click on a cancel button. Right now a user dont know where to press if he choose the wrong action by mistake.
/nisse
great work victor. thanks again.
chris heaven
A nice stuff! I have only two comments:
* It would be a good thing to keep the smbwebclient settings optionally in a separate file so as one doesn't need to edit it with every new version.
* Automatic language settings doesn't work here as I would expect. It defaults to EN, but my firefox sends header Accept-Language "cs,en-us..." (I want that 'cs' strings - they are included in smbwebclient...)
Thank you!
D*
Putting settings in another file:
1) /var/www/smbwebclient.php
$SMBWEBCLIENT_CLASS = 'smbwebclient_config';
include '/usr/share/samba/smbwebclient.php';
include '/etc/samba/smbwebclient.conf';
$swc = new smbwebclient_config;
$swc->Run(@$_REQUEST['path']);
?>
2) /etc/samba/smbwebclient.conf:
class smbwebclient_config extends smbwebclient {
var $cfgSambaRoot = 'MYDOMAIN/MYSERVER';
var $cfgDefaultLanguage = 'es';
// all your settings ...
}
?>
3) /usr/share/samba/smbwebclient.php
(original file)
Just to reiterate Victor's comment with regards to using https - a simple Apache rewrite rule such as this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/smbwebclient/(.*)$ https://%{SERVER_NAME}/smbwebclient/$1 [R,L]
... will do the trick nicely. The rule above forces http requests for smbwebclient to https without the user having to specify a secure connection.
HTH
Regards,
Chris Heaven
Why not use RedirectPermanent in the non-ssl virtualhost? I use this for webmail and other things.
Post a Comment
<< Home