Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-11) was last changed on 25-Oct-2018 04:31 by Ben Spink

This page was created on 25-Oct-2018 04:31 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 2 changed one line
\\*Please note! This is not a magical solution to mount CrushFTP servers as a local drive on machines. This solution works for the right use cases, but needs testing to ensure it works with your particular app and use case scenario.\\
\\
At line 6 changed one line
java -Dcrushftpdrive.base_url=http://127.0.0.1:8080/ -Dcrushftpdrive.server_ip=0.0.0.0 -Dcrushftpdrive.server_port=13000 -Duser.home=./ -Dcrushftpdrive.smbserver=true -Dcrushftpdrive.writeprefs=false -Dcrushftpdrive.writelog=false -Dcruftpdrive.writelogconsole=true -cp CrushFTPDrive.jar:alfresco-jlan.jar com.crushftp.client.smb.CrushFTPDrive -d drive_username=MyUser drive_password=password drive_auto=true drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false
java -Dcrushftpdrive.base_url=http://127.0.0.1:8080/ -Dcrushftpdrive.server_ip=0.0.0.0 -Dcrushftpdrive.server_port=13000 -Duser.home=./ -Dcrushftpdrive.smbserver=true -Dcrushftpdrive.writeprefs=false -Dcrushftpdrive.writelog=false -Dcruftpdrive.writelogconsole=false -Dcrushftpdrive.username_pass_separator=, -Dcrushftpdrive.allowed_ips=127.0.0.1,192.168.1.* -cp CrushFTPDrive.jar:alfresco-jlan.jar com.crushftp.client.smb.CrushFTPDrive -d drive_username=MyUser drive_password=. drive_auto=false drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false
At line 8 changed one line
\\
This now lets us mount a URL such as:\\
{{{smb://127.0.0.1:13000/CrushFTPDriveHome/}}}
\\
We can login with the username of "MyUser,password" and any password in our SMB client. , separates the username and password as specified by our parameters.
\\
At line 33 changed one line
{{{-Dcruftpdrive.writelogconsole=true}}}
{{{-Dcrushftpdrive.writelogconsole=true}}}
At line 35 changed one line
Now we specify the jar files we are using to run this Java app...thsi includes the alfresco jar and the CrushFTPDrive jar.\\
Specify which IPs or IP patterns are allowed to connect to this instance. We do not authenticate users based on username or password, we only authenticate based on source ip. (And the next option, see below.)\\
{{{-Dcrushftpdrive.allowed_ips=127.0.0.1,192.168.1.*}}}
\\
Specify that the username contains both username and password with a separator character. This is necessary since we cannot get the password from the login to sue it for authentication to the remote server. So the password is ignored entirely and the username is parsed into two separate parts..\\
{{{-Dcrushftpdrive.username_pass_separator=,}}}
\\
Now we specify the jar files we are using to run this Java app...this includes the alfresco jar and the CrushFTPDrive jar. On windows the separator is the ; character instead of the colon character, but we assume your doing this in Linux. These jar files are located in your CrushFTP folder's WebInterface, CrushFTPDrive folder.\\
At line 46 changed one line
drive_username=MyUser drive_password=password drive_auto=true drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false
drive_username=MyUser drive_password=. drive_auto=false drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false
At line 60 added 4 lines
*We are passing in the password of "." since we are overriding this with the comma separator for user,pass in the username.\\
*We are not mapping a drive liek in the traditional sense that CrushFTPDrive normally does since its acting as a proxy, so we set it not to map, and don't auto open.\\
*Driver letter is irrelevant in this scenario as well.\\
\\
Version Date Modified Size Author Changes ... Change note
11 25-Oct-2018 04:31 4.303 kB Ben Spink to previous
10 25-Oct-2018 04:31 4.076 kB Ben Spink to previous | to last
9 25-Oct-2018 04:31 3.945 kB Ben Spink to previous | to last
8 25-Oct-2018 04:31 3.614 kB Ben Spink to previous | to last
7 25-Oct-2018 04:31 2.867 kB Ben Spink to previous | to last
6 25-Oct-2018 04:31 2.768 kB Ben Spink to previous | to last
5 25-Oct-2018 04:31 2.526 kB Ben Spink to previous | to last
4 25-Oct-2018 04:31 2.471 kB Ben Spink to previous | to last
3 25-Oct-2018 04:31 2.069 kB Ben Spink to previous | to last
2 25-Oct-2018 04:31 0.646 kB Ben Spink to previous | to last
1 25-Oct-2018 04:31 0.114 kB Ben Spink to last
« This page (revision-11) was last changed on 25-Oct-2018 04:31 by Ben Spink
G’day (anonymous guest)
CrushFTP9 | What's New

Referenced by
CrushFTPDrive

JSPWiki